mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +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:
|
for capability in self.capabilities:
|
||||||
write('capability ' + capability)
|
write('capability ' + capability)
|
||||||
bans = self.bans.items()
|
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)
|
utils.sortBy(lambda x:x[1][0], bans)
|
||||||
for (ban, (expiration, description)) in bans:
|
for (ban, (expiration, description)) in bans:
|
||||||
write('ban %s %d %s' % (ban, expiration, description))
|
write('ban %s %d %s' % (ban, expiration, description))
|
||||||
|
Loading…
Reference in New Issue
Block a user