mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
clientbot: clear who / kick state on connect
This commit is contained in:
parent
832f22e7f0
commit
8fc310eb24
@ -62,6 +62,10 @@ class ClientbotWrapperProtocol(Protocol):
|
||||
self.irc.servers[sid] = self.irc.servers[old_sid]
|
||||
del self.irc.servers[old_sid]
|
||||
|
||||
# Clear states from last connect
|
||||
self.who_received.clear()
|
||||
self.kick_queue.clear()
|
||||
|
||||
sendpass = self.irc.serverdata.get("sendpass")
|
||||
if sendpass:
|
||||
f('PASS %s' % sendpass)
|
||||
|
Loading…
Reference in New Issue
Block a user