Skip to content

Commit

Permalink
[translate] Fix bug with the $nickname: "foo"? form
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Alfassa committed Jul 17, 2014
1 parent 62e5486 commit 07a154e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ def tr(bot, trigger):
msg = msg.decode('utf-8')
if msg:
msg = web.decode(msg) # msg.replace(''', "'")
msg = '"%s" (%s to %s, translate.google.com)' % (msg, input, output)
msg = '"%s" (%s to %s, translate.google.com)' % (msg, in_lang, out_lang)
else:
msg = 'The %s to %s translation failed, sorry!' % (input, output)
msg = 'The %s to %s translation failed, sorry!' % (in_lang, out_lang)

bot.reply(msg)
else:
Expand Down

0 comments on commit 07a154e

Please sign in to comment.