summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-01 13:19:24 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-01 13:19:24 +0000
commite47d9daf3beb3b6ab34c5c7a5b84f3019241b035 (patch)
treecfe6fd82ab778cc27e74f92c538565c5d7bac248 /data/rbot/plugins
parenta4a5b3b267542e228dc3ae557946eb6315898098 (diff)
search plugin: let the user know when no body was found and no error was raised
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/search.rb1
1 files changed, 1 insertions, 0 deletions
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