mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fix parsing ISUPPORT MODES with empty value.
This commit is contained in:
parent
2008f7b815
commit
fc06aa72a6
@ -614,7 +614,7 @@ class IrcState(IrcCommandDispatcher, log.Firewalled):
|
|||||||
self.supported['chanmodes'] = frozenset(msg.args[4])
|
self.supported['chanmodes'] = frozenset(msg.args[4])
|
||||||
|
|
||||||
_005converters = utils.InsensitivePreservingDict({
|
_005converters = utils.InsensitivePreservingDict({
|
||||||
'modes': int,
|
'modes': lambda s: int(s) if s else None, # it's optional
|
||||||
'keylen': int,
|
'keylen': int,
|
||||||
'nicklen': int,
|
'nicklen': int,
|
||||||
'userlen': int,
|
'userlen': int,
|
||||||
|
Loading…
Reference in New Issue
Block a user