summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/rbot/plugins/games/azgame.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/rbot/plugins/games/azgame.rb b/data/rbot/plugins/games/azgame.rb
index a19da43c..91caf35d 100644
--- a/data/rbot/plugins/games/azgame.rb
+++ b/data/rbot/plugins/games/azgame.rb
@@ -560,6 +560,7 @@ class AzGamePlugin < Plugin
debug "getting random word from dictionary, matching #{random}"
p = @bot.httputil.get(rules[:url] % CGI.escape(random))
debug p
+ raise 'unable to get search results' if not p.match /Search results for/i
lemmi = Array.new
good = rules[:good]
# We look for a lemma composed by a single word and of length at least two