mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Fix previous commit (again).
This commit is contained in:
parent
c918074b92
commit
b90bd4b9d9
@ -695,7 +695,7 @@ def topic(channel, topic=None, prefix='', msg=None):
|
|||||||
return IrcMsg(prefix=prefix, command='TOPIC',
|
return IrcMsg(prefix=prefix, command='TOPIC',
|
||||||
args=(channel,), msg=msg)
|
args=(channel,), msg=msg)
|
||||||
else:
|
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')
|
s = s.decode('utf8')
|
||||||
assert isinstance(topic, str)
|
assert isinstance(topic, str)
|
||||||
return IrcMsg(prefix=prefix, command='TOPIC',
|
return IrcMsg(prefix=prefix, command='TOPIC',
|
||||||
|
Loading…
Reference in New Issue
Block a user