diff options
author | dmitry kim <jason@nichego.net> | 2008-06-17 17:33:13 +0400 |
---|---|---|
committer | dmitry kim <jason@nichego.net> | 2008-06-17 17:36:15 +0400 |
commit | 73f41ae3fee471c679cbcb51212245724f6b344a (patch) | |
tree | 2a51652ee750490974f2beff52e02b7ee965063e /data | |
parent | 09f65ecdf359c68ba0f26e7810d5772919346f71 (diff) |
* plugins: misc warnings cleanups
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/fish.rb | 8 | ||||
-rw-r--r-- | data/rbot/plugins/spell.rb | 6 |
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 |