summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/games/azgame.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-08 09:37:01 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-08 09:37:01 +0000
commit109fa2a5b63af113df2c6b21d44135efa0d94d70 (patch)
treeb19924dbcd8aab2bcd144800787172c863ebb6be /data/rbot/plugins/games/azgame.rb
parent74c6e24a38169dd3a03f8d9381d6ff0e6475ffe7 (diff)
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
Diffstat (limited to 'data/rbot/plugins/games/azgame.rb')
-rw-r--r--data/rbot/plugins/games/azgame.rb4
1 files changed, 2 insertions, 2 deletions
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]