mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
core: Fix IrcChannel.preserve. Closes GH-1106.
This commit is contained in:
parent
82b8bf801a
commit
f1fae13b4a
@ -478,6 +478,8 @@ class IrcChannel(object):
|
||||
for capability in self.capabilities:
|
||||
write('capability ' + capability)
|
||||
bans = self.bans.items()
|
||||
bans = [(x, (y, None) if isinstance(y, int) else y)
|
||||
for (x, y) in bans]
|
||||
utils.sortBy(lambda x:x[1][0], bans)
|
||||
for (ban, (expiration, description)) in bans:
|
||||
write('ban %s %d %s' % (ban, expiration, description))
|
||||
|
Loading…
Reference in New Issue
Block a user