From 915b8ecffc4b19877f36ddb36fa85f3a4cd53286 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 10 Sep 2010 21:08:30 +0200 Subject: twitter: let user know when no status was found --- data/rbot/plugins/twitter.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'data/rbot/plugins') 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 -- cgit v1.2.3