summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/twitter.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-09-10 21:08:30 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-09-10 21:08:30 +0200
commit915b8ecffc4b19877f36ddb36fa85f3a4cd53286 (patch)
tree758a0fde0f059abec1315c50e916655b8d0adec2 /data/rbot/plugins/twitter.rb
parent88b556954cf92a1feded2cd197bba53fb8c65e3d (diff)
twitter: let user know when no status was found
Diffstat (limited to 'data/rbot/plugins/twitter.rb')
-rw-r--r--data/rbot/plugins/twitter.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/rbot/plugins/twitter.rb b/data/rbot/plugins/twitter.rb
index f56186de..045b6172 100644
--- a/data/rbot/plugins/twitter.rb
+++ b/data/rbot/plugins/twitter.rb
@@ -138,7 +138,11 @@ class TwitterPlugin < Plugin
end
return false
end
- m.reply texts.reverse.join("\n")
+ if texts.empty?
+ m.reply "No status updates!"
+ else
+ m.reply texts.reverse.join("\n")
+ end
return true
else
if friends