summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjoe <joe@lc8n.com>2012-02-07 13:18:38 +0000
committerwjoe <joe@lc8n.com>2012-02-07 13:18:38 +0000
commitc74ccb48bf7d32c979cf6e1babf08e04208630cb (patch)
tree28234303a90fd4327d48ff6b2e0d1bdf1ce2d215
parentf0cfd7938447d3d026a501c73959589f91092b46 (diff)
Historic commit 2.0.3 (06-Feb-2012 13:16)
-rw-r--r--blatweet.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/blatweet.rb b/blatweet.rb
index 32fb097..32dd1e1 100644
--- a/blatweet.rb
+++ b/blatweet.rb
@@ -11,7 +11,7 @@ number_of_tweets = 1
message = nil
limit = false
debug = false
-version = 'v2.0.2'
+version = 'v2.0.3'
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'] if response['error']
+ puts response['error'] ? response['error'] : "Posted tweet from #{irc_nick}."
elsif username
client.search("from:#{username}", :rpp => number_of_tweets)['results'].each_with_index{|tweet, index| output << "#{index+1}: #{tweet['text']}"}
puts output.join ' '