From e47d9daf3beb3b6ab34c5c7a5b84f3019241b035 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 1 Apr 2007 13:19:24 +0000 Subject: search plugin: let the user know when no body was found and no error was raised --- data/rbot/plugins/search.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'data/rbot/plugins/search.rb') diff --git a/data/rbot/plugins/search.rb b/data/rbot/plugins/search.rb index 1884b38a..9b976886 100644 --- a/data/rbot/plugins/search.rb +++ b/data/rbot/plugins/search.rb @@ -63,6 +63,7 @@ class SearchPlugin < Plugin begin wml = @bot.httputil.get(url) + raise unless wml rescue => e m.reply "error googling for #{what}" return -- cgit v1.2.3