Azure: fix missing variable in reply

This commit is contained in:
Gordon Shumway 2020-02-21 16:17:24 -05:00 committed by GitHub
parent 5acca16e80
commit efb40612ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ class Azure(callbacks.Plugin):
if result[0].get('detectedLanguage'):
reply = "{0} [{1}~>{2}]".format(result[0]['translations'][0]['text'], result[0]['detectedLanguage']['language'], target)
else:
reply = "{0} [{1}~>{2}]".format(source, target)
reply = "{0} [{1}~>{2}]".format(result[0]['translations'][0]['text'], source, target)
irc.reply(reply)
translate = wrap(translate, [getopts({'from':'text', 'to':'text'}), 'text'])