From 1507a87f31e6e46105b07582a4c2dbee369f4592 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 21 Jul 2016 18:03:32 -0700 Subject: [PATCH] clientbot: wait for KICK acknowledgement before updating state --- protocols/clientbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index 4e2d42a..4babc52 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -110,7 +110,8 @@ class ClientbotWrapperProtocol(Protocol): # TODO: handle kick failures and send rejoin hooks for the target reason = self._formatText(source, reason) self.irc.send('KICK %s %s :%s' % (channel, self._expandPUID(target), reason)) - self.part(target, channel, reason=reason) + + # Don't update our state here: wait for the IRCd to send an acknowledgement instead. def message(self, source, target, text, notice=False): """Sends messages to the target."""