]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
translator: fix random bug caused by undefined variables
authorRaine Virta <rane@kapsi.fi>
Sun, 29 Nov 2009 20:00:50 +0000 (22:00 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 30 Nov 2009 22:13:34 +0000 (23:13 +0100)
data/rbot/plugins/translator.rb

index a32ea16dfa059d56789a83ae0f4942f4b54c1e08..6e9c42eede9123a6d3d290e409b01135e594beb0 100644 (file)
@@ -341,7 +341,7 @@ class TranslatorPlugin < Plugin
     if translator
       cmd_translate m, params.merge({:translator => translator, :show_provider => true})
     else
-      m.reply _('None of the default translators (translator.default_list) supports translating from %{source} to %{target}') % {:source => from, :target => to}
+      m.reply _('None of the default translators (translator.default_list) supports translating from %{source} to %{target}') % {:source => params[:from], :target => params[:to]}
     end
   end