summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorRaine Virta <rane@kapsi.fi>2009-11-29 22:00:50 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-11-30 23:13:34 +0100
commit3684a4b37bb8098a8b1a4f2de34b3a5b4b688eab (patch)
treebad1f76e163d7bbe0b629a96e29654c34c431d04 /data/rbot
parent9bd862f9dd7b42a043c1adc95d85b830b6f07f89 (diff)
translator: fix random bug caused by undefined variables
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/translator.rb2
1 files changed, 1 insertions, 1 deletions
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