mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Filter: Fix @rot13 with non-ascii strings.
This commit is contained in:
parent
e3e2b23215
commit
6e452e0496
@ -209,7 +209,7 @@ class Filter(callbacks.Plugin):
|
|||||||
commonly used for text that simply needs to be hidden from inadvertent
|
commonly used for text that simply needs to be hidden from inadvertent
|
||||||
reading by roaming eyes, since it's easily reversible.
|
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'])
|
rot13 = wrap(rot13, ['text'])
|
||||||
|
|
||||||
@internationalizeDocstring
|
@internationalizeDocstring
|
||||||
|
Loading…
Reference in New Issue
Block a user