From 6c4a8edb9c7e209c4fb0deab87ac19bef5287dde Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 20 Jun 2020 20:15:28 +0200 Subject: [PATCH] irclib: Ignore 'sts' in case of missing keys instead of aborting the connection. In case https://github.com/ircv3/ircv3-specifications/pull/390 gets adopted. --- src/irclib.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/irclib.py b/src/irclib.py index 334a5a024..3ffb1de1c 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -1565,8 +1565,11 @@ class Irc(IrcCommandDispatcher, log.Firewalled): parsed_policy = ircutils.parseStsPolicy( log, policy, parseDuration=secure_connection) if parsed_policy is None: - # There was an error (and it was logged). Abort the connection. - self.driver.reconnect(wait=True) + # There was an error (and it was logged). Ignore it and proceed + # with the connection. + # Currently this shouldn't happen, but let's future-proof it, eg. + # in case https://github.com/ircv3/ircv3-specifications/pull/390 + # gets adopted. return if secure_connection: