mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fix @String decode utf8 issue
This commit is contained in:
parent
17248b5d2c
commit
1cceeb7ad1
@ -85,7 +85,7 @@ class String(callbacks.Plugin):
|
||||
<http://docs.python.org/library/codecs.html#standard-encodings>.
|
||||
"""
|
||||
try:
|
||||
irc.reply(text.decode(encoding).encode('utf-8'))
|
||||
irc.reply(text.decode(encoding))
|
||||
except LookupError:
|
||||
irc.errorInvalid(_('encoding'), encoding)
|
||||
except binascii.Error:
|
||||
|
Loading…
Reference in New Issue
Block a user