]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
search plugin: let the user know when no body was found and no error was raised
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 1 Apr 2007 13:19:24 +0000 (13:19 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 1 Apr 2007 13:19:24 +0000 (13:19 +0000)
data/rbot/plugins/search.rb

index 1884b38aaa9f426d6d483fbc3098c83d7597040a..9b9768860ba1b17df978da7717b7308781b1ea48 100644 (file)
@@ -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