Fix parsing ISUPPORT MODES with empty value.

This commit is contained in:
Valentin Lorentz 2020-05-07 18:31:39 +02:00
parent 2008f7b815
commit fc06aa72a6
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ class IrcState(IrcCommandDispatcher, log.Firewalled):
self.supported['chanmodes'] = frozenset(msg.args[4])
_005converters = utils.InsensitivePreservingDict({
'modes': int,
'modes': lambda s: int(s) if s else None, # it's optional
'keylen': int,
'nicklen': int,
'userlen': int,