Filter: Fix @rot13 with non-ascii strings.

This commit is contained in:
Valentin Lorentz 2013-01-05 20:05:22 +01:00
parent e3e2b23215
commit 6e452e0496

View File

@ -209,7 +209,7 @@ class Filter(callbacks.Plugin):
commonly used for text that simply needs to be hidden from inadvertent
reading by roaming eyes, since it's easily reversible.
"""
irc.reply(self._rot13_encoder(text)[0])
irc.reply(self._rot13_encoder(text.decode('utf8', errors='replace'))[0])
rot13 = wrap(rot13, ['text'])
@internationalizeDocstring