mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Fix bug #1043863, urlquoted text in reply.
This commit is contained in:
parent
5bc91113fe
commit
163d835502
@ -117,7 +117,7 @@ class Babelfish(callbacks.Privmsg):
|
||||
irc.error('I only speak %s.' % utils.commaAndify(langs))
|
||||
return
|
||||
translation = babelfish.translate(text, fromLang, toLang)
|
||||
irc.reply(translation)
|
||||
irc.reply(utils.htmlToText(translation))
|
||||
except (KeyError, babelfish.LanguageNotAvailableError), e:
|
||||
languages = self.registryValue('languages', chan)
|
||||
if languages:
|
||||
|
@ -71,6 +71,10 @@ if network:
|
||||
finally:
|
||||
langs.setValue(orig)
|
||||
|
||||
def testHtmlToText(self):
|
||||
self.assertNotRegexp('translate fr en Qu\'y', ''')
|
||||
self.assertNotRegexp('babelize fr en Qu\'y', ''')
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user