summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authordmitry kim <jason@nichego.net>2008-06-17 17:33:13 +0400
committerdmitry kim <jason@nichego.net>2008-06-17 17:36:15 +0400
commit73f41ae3fee471c679cbcb51212245724f6b344a (patch)
tree2a51652ee750490974f2beff52e02b7ee965063e /data
parent09f65ecdf359c68ba0f26e7810d5772919346f71 (diff)
* plugins: misc warnings cleanups
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/fish.rb8
-rw-r--r--data/rbot/plugins/spell.rb6
2 files changed, 7 insertions, 7 deletions
diff --git a/data/rbot/plugins/fish.rb b/data/rbot/plugins/fish.rb
index 412b0d06..5b24d241 100644
--- a/data/rbot/plugins/fish.rb
+++ b/data/rbot/plugins/fish.rb
@@ -39,10 +39,10 @@ class BabelPlugin < Plugin
m.reply 'webpage translation is not currently supported'
return
# TODO FIXME
- url = BASEURL+'/translate_url' +
- "?lp=#{trans_pair}&trurl=#{data_text}"
-
- return Utils.get_first_pars([url], 1, :message => m)
+ # url = BASEURL+'/translate_url' +
+ # "?lp=#{trans_pair}&trurl=#{data_text}"
+ #
+ # return Utils.get_first_pars([url], 1, :message => m)
end
data = "lp=#{trans_pair}&doit=done&intl=1&tt=urltext&urltext=#{data_text}"
diff --git a/data/rbot/plugins/spell.rb b/data/rbot/plugins/spell.rb
index 659befa6..7d58b79c 100644
--- a/data/rbot/plugins/spell.rb
+++ b/data/rbot/plugins/spell.rb
@@ -13,7 +13,7 @@ class SpellPlugin < Plugin
p.close_write
p.each_line {|l|
if(l =~ /^\*/)
- m.reply (_("%{word} may be spelled correctly") % {:word => m.params})
+ m.reply(_("%{word} may be spelled correctly") % {:word => m.params})
p.close
return
elsif(l =~ /^\s*&.*: (.*)$/)
@@ -21,11 +21,11 @@ class SpellPlugin < Plugin
p.close
return
elsif(l =~ /^\s*\+ (.*)$/)
- m.reply (_("%{word} is presumably derived from ") % {:word => m.params}) + $1.downcase
+ m.reply((_("%{word} is presumably derived from ") % {:word => m.params}) + $1.downcase)
p.close
return
elsif(l =~ /^\s*#/)
- m.reply (_("%{word}: no suggestions") % {:word => m.params})
+ m.reply(_("%{word}: no suggestions") % {:word => m.params})
p.close
return
end