summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorMatthias H <apoc@sixserv.org>2013-08-19 14:43:38 +0200
committerMatthias H <apoc@sixserv.org>2013-08-19 14:43:38 +0200
commitd041e613c9562523587ae92803b7792cf31cbc84 (patch)
treee4b345babb08e1225b00b7813955609b53c9d5cb /data/rbot/plugins
parent4b71dc02e70e7df55fda47813f850d035cdf5b36 (diff)
azgame: fix pattern to check search results
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/games/azgame.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/games/azgame.rb b/data/rbot/plugins/games/azgame.rb
index 91caf35d..ca67881c 100644
--- a/data/rbot/plugins/games/azgame.rb
+++ b/data/rbot/plugins/games/azgame.rb
@@ -560,7 +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
+ raise 'unable to get search results' if not p.match /id="fullsearchresults"/i
lemmi = Array.new
good = rules[:good]
# We look for a lemma composed by a single word and of length at least two