From b90bd4b9d9035f35e91409146023019d7276c368 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 9 Feb 2013 19:37:10 +0100 Subject: [PATCH] Fix previous commit (again). --- src/ircmsgs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ircmsgs.py b/src/ircmsgs.py index bcf9cd078..748314e89 100644 --- a/src/ircmsgs.py +++ b/src/ircmsgs.py @@ -695,7 +695,7 @@ def topic(channel, topic=None, prefix='', msg=None): return IrcMsg(prefix=prefix, command='TOPIC', args=(channel,), msg=msg) else: - if sys.version_info[0] < 3 and isinstance(s, unicode): + if sys.version_info[0] < 3 and isinstance(topic, unicode): s = s.decode('utf8') assert isinstance(topic, str) return IrcMsg(prefix=prefix, command='TOPIC',