From 73f41ae3fee471c679cbcb51212245724f6b344a Mon Sep 17 00:00:00 2001 From: dmitry kim Date: Tue, 17 Jun 2008 17:33:13 +0400 Subject: * plugins: misc warnings cleanups --- data/rbot/plugins/fish.rb | 8 ++++---- 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 -- cgit v1.2.3