3
0
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:
James Lu 2016-07-24 11:15:33 -07:00
parent 832f22e7f0
commit 8fc310eb24

View File

@ -62,6 +62,10 @@ class ClientbotWrapperProtocol(Protocol):
self.irc.servers[sid] = self.irc.servers[old_sid] self.irc.servers[sid] = self.irc.servers[old_sid]
del 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") sendpass = self.irc.serverdata.get("sendpass")
if sendpass: if sendpass:
f('PASS %s' % sendpass) f('PASS %s' % sendpass)