From 109fa2a5b63af113df2c6b21d44135efa0d94d70 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 8 Apr 2007 09:37:01 +0000 Subject: plugins: use CGI.escape instead of URI.escape where appropriate, remove some checks for InvalidURIs that don't make sense anymore, irficy some more html --- data/rbot/plugins/games/azgame.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/rbot/plugins/games') diff --git a/data/rbot/plugins/games/azgame.rb b/data/rbot/plugins/games/azgame.rb index f62232c0..66646e73 100644 --- a/data/rbot/plugins/games/azgame.rb +++ b/data/rbot/plugins/games/azgame.rb @@ -446,7 +446,7 @@ class AzGamePlugin < Plugin wc = @wordcache[:english] return true if wc.key?(word.to_sym) rules = @rules[:english] - p = @bot.httputil.get(rules[:url] % URI.escape(word)) + p = @bot.httputil.get(rules[:url] % CGI.escape(word)) if not p error "could not connect!" return false @@ -497,7 +497,7 @@ class AzGamePlugin < Plugin ll = ('a'..'z').to_a[rand(26)] random = [l,ll].join('*') + '*' debug "getting random word from dictionary, matching #{random}" - p = @bot.httputil.get(rules[:url] % URI.escape(random)) + p = @bot.httputil.get(rules[:url] % CGI.escape(random)) debug p lemmi = Array.new good = rules[:good] -- cgit v1.2.3