mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-26 13:01:09 -05:00
Azure: fix missing variable in reply
This commit is contained in:
parent
5acca16e80
commit
efb40612ff
@ -73,7 +73,7 @@ class Azure(callbacks.Plugin):
|
|||||||
if result[0].get('detectedLanguage'):
|
if result[0].get('detectedLanguage'):
|
||||||
reply = "{0} [{1}~>{2}]".format(result[0]['translations'][0]['text'], result[0]['detectedLanguage']['language'], target)
|
reply = "{0} [{1}~>{2}]".format(result[0]['translations'][0]['text'], result[0]['detectedLanguage']['language'], target)
|
||||||
else:
|
else:
|
||||||
reply = "{0} [{1}~>{2}]".format(source, target)
|
reply = "{0} [{1}~>{2}]".format(result[0]['translations'][0]['text'], source, target)
|
||||||
irc.reply(reply)
|
irc.reply(reply)
|
||||||
translate = wrap(translate, [getopts({'from':'text', 'to':'text'}), 'text'])
|
translate = wrap(translate, [getopts({'from':'text', 'to':'text'}), 'text'])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user