From d041e613c9562523587ae92803b7792cf31cbc84 Mon Sep 17 00:00:00 2001 From: Matthias H Date: Mon, 19 Aug 2013 14:43:38 +0200 Subject: [PATCH] azgame: fix pattern to check search results --- data/rbot/plugins/games/azgame.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.32.0.93.g670b81a890