]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
azgame: fix pattern to check search results
authorMatthias H <apoc@sixserv.org>
Mon, 19 Aug 2013 12:43:38 +0000 (14:43 +0200)
committerMatthias H <apoc@sixserv.org>
Mon, 19 Aug 2013 12:43:38 +0000 (14:43 +0200)
data/rbot/plugins/games/azgame.rb

index 91caf35d41fc227338f3a1527ba42ab8b1f63fd7..ca67881cb79424c3959ba89deb8eaf61a0e97d03 100644 (file)
@@ -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