mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Reset capability set state on reconnection.
This commit is contained in:
parent
cfbbed3da9
commit
0014b206ad
@ -379,11 +379,15 @@ class IrcState(IrcCommandDispatcher, log.Firewalled):
|
|||||||
def reset(self):
|
def reset(self):
|
||||||
"""Resets the state to normal, unconnected state."""
|
"""Resets the state to normal, unconnected state."""
|
||||||
self.history.reset()
|
self.history.reset()
|
||||||
|
self.history.resize(conf.supybot.protocols.irc.maxHistoryLength())
|
||||||
|
self.ircd = None
|
||||||
self.channels.clear()
|
self.channels.clear()
|
||||||
self.supported.clear()
|
self.supported.clear()
|
||||||
self.nicksToHostmasks.clear()
|
self.nicksToHostmasks.clear()
|
||||||
self.history.resize(conf.supybot.protocols.irc.maxHistoryLength())
|
|
||||||
self.batches = {}
|
self.batches = {}
|
||||||
|
self.capabilities_ack = set()
|
||||||
|
self.capabilities_nak = set()
|
||||||
|
self.capabilities_ls = set()
|
||||||
|
|
||||||
def __reduce__(self):
|
def __reduce__(self):
|
||||||
return (self.__class__, (self.history, self.supported,
|
return (self.__class__, (self.history, self.supported,
|
||||||
|
Loading…
Reference in New Issue
Block a user