From: Raine Virta Date: Sun, 29 Nov 2009 20:00:50 +0000 (+0200) Subject: translator: fix random bug caused by undefined variables X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=3684a4b37bb8098a8b1a4f2de34b3a5b4b688eab;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git translator: fix random bug caused by undefined variables --- diff --git a/data/rbot/plugins/translator.rb b/data/rbot/plugins/translator.rb index a32ea16d..6e9c42ee 100644 --- a/data/rbot/plugins/translator.rb +++ b/data/rbot/plugins/translator.rb @@ -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