diff options
| -rw-r--r-- | blatweet.rb | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/blatweet.rb b/blatweet.rb index bb7a2e8..e79a82a 100644 --- a/blatweet.rb +++ b/blatweet.rb @@ -11,7 +11,7 @@ number_of_tweets = 1  message = nil  limit = false  debug = false -version = 'v2.0.5' +version = 'v2.0.6'  help = false  irc_nick = nil  ops = nil @@ -20,6 +20,7 @@ ARGV[2].split(' ').each{|arg| ARGV << arg} if ARGV[2]  ARGV.delete_at 2  STDIN.gets.split(' ').each{|arg| ARGV << arg} if ARGV == []  args = ARGV.dup +puts args.inspect  options = OptionParser.new do |opts|    opts.banner = "Usage: #{File.basename($0)} -h" @@ -107,7 +108,8 @@ begin      client.search("from:#{username}", :rpp => number_of_tweets)['results'].each_with_index{|tweet, index| output << "#{index+1}: #{tweet['text']}"}      puts output.join ' '    else -    oauth_client('intensemarcus', config).update ARGV.join(' ') +    response = oauth_client('intensemarcus', config).update ARGV.join(' ') +    puts response['error'] ? response['error'] : "Posted tweet to intensemarcus from #{irc_nick}."    end  rescue StandardError => e  | 
