mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Fix commit b90bd4b9d9
.
This commit is contained in:
parent
f4c643ad51
commit
881eb9f771
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user