From fc06aa72a641a0071c60bb6be1948cd7c0cb585f Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 7 May 2020 18:31:39 +0200 Subject: [PATCH] Fix parsing ISUPPORT MODES with empty value. --- src/irclib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irclib.py b/src/irclib.py index a32e95376..ba754bf56 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -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,