From 3684a4b37bb8098a8b1a4f2de34b3a5b4b688eab Mon Sep 17 00:00:00 2001 From: Raine Virta Date: Sun, 29 Nov 2009 22:00:50 +0200 Subject: translator: fix random bug caused by undefined variables --- data/rbot/plugins/translator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') 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 -- cgit v1.2.3