From 881eb9f7712b965143604ccdf0790d036edc7223 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 12 Mar 2013 19:36:08 +0100 Subject: [PATCH] Fix commit b90bd4b9d9035. --- src/ircmsgs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ircmsgs.py b/src/ircmsgs.py index 051e92146..1df56cba5 100644 --- a/src/ircmsgs.py +++ b/src/ircmsgs.py @@ -696,7 +696,7 @@ def topic(channel, topic=None, prefix='', msg=None): args=(channel,), msg=msg) else: if sys.version_info[0] < 3 and isinstance(topic, unicode): - s = s.encode('utf8') + topic = topic.encode('utf8') assert isinstance(topic, str) return IrcMsg(prefix=prefix, command='TOPIC', args=(channel, topic), msg=msg)