From 0014b206ada2cc1fbabe497a0048e2bfed608511 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 25 Oct 2019 22:40:51 +0200 Subject: [PATCH] Reset capability set state on reconnection. --- src/irclib.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/irclib.py b/src/irclib.py index 49c58753b..069a3f5be 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -379,11 +379,15 @@ class IrcState(IrcCommandDispatcher, log.Firewalled): def reset(self): """Resets the state to normal, unconnected state.""" self.history.reset() + self.history.resize(conf.supybot.protocols.irc.maxHistoryLength()) + self.ircd = None self.channels.clear() self.supported.clear() self.nicksToHostmasks.clear() - self.history.resize(conf.supybot.protocols.irc.maxHistoryLength()) self.batches = {} + self.capabilities_ack = set() + self.capabilities_nak = set() + self.capabilities_ls = set() def __reduce__(self): return (self.__class__, (self.history, self.supported,