diff options
-rw-r--r-- | blatweet.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/blatweet.rb b/blatweet.rb index c08b6c0..32fb097 100644 --- a/blatweet.rb +++ b/blatweet.rb @@ -11,7 +11,7 @@ number_of_tweets = 1 message = nil limit = false debug = false -version = 'v2.0.1' +version = 'v2.0.2' help = false irc_nick = nil ops = nil @@ -100,7 +100,7 @@ begin puts remaining_hits == 0 ? "Limit reached. Limit resets in #{(60 + reset_time.min) - Time.now.min} minutes." : "Remaining hits this hour: #{remaining_hits}. #{remaining_hits/((60 + reset_time.min) - Time.now.min)} hits/minute." elsif message response = oauth_client(irc_nick, config).update message - puts response['error'] + puts response['error'] if response['error'] elsif username client.search("from:#{username}", :rpp => number_of_tweets)['results'].each_with_index{|tweet, index| output << "#{index+1}: #{tweet['text']}"} puts output.join ' ' |