From 1cceeb7ad1ebb5668a269a75f8b38561314c3c66 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 26 Jan 2011 08:30:20 +0100 Subject: [PATCH] Fix @String decode utf8 issue --- plugins/String/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/String/plugin.py b/plugins/String/plugin.py index 6d0073529..ccc6496ec 100644 --- a/plugins/String/plugin.py +++ b/plugins/String/plugin.py @@ -85,7 +85,7 @@ class String(callbacks.Plugin): . """ try: - irc.reply(text.decode(encoding).encode('utf-8')) + irc.reply(text.decode(encoding)) except LookupError: irc.errorInvalid(_('encoding'), encoding) except binascii.Error: