diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-09-10 21:08:30 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-09-10 21:08:30 +0200 |
commit | 915b8ecffc4b19877f36ddb36fa85f3a4cd53286 (patch) | |
tree | 758a0fde0f059abec1315c50e916655b8d0adec2 /data | |
parent | 88b556954cf92a1feded2cd197bba53fb8c65e3d (diff) |
twitter: let user know when no status was found
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/twitter.rb | 6 |
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 |