From 1f377adfeeadb1279210272b263f7f87b98eba2d Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 16 Jul 2017 07:34:45 -0700 Subject: [PATCH] p10: also acknowledge our own kicks with a PART (adapted from commit 1438f9e566a8f1778a448fd3fb3d1fc9da90a26b) --- protocols/p10.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/protocols/p10.py b/protocols/p10.py index 76dd10d..8b89d18 100644 --- a/protocols/p10.py +++ b/protocols/p10.py @@ -365,6 +365,11 @@ class P10Protocol(IRCS2SProtocol): # handle_part() does that just fine. self.handle_part(target, 'KICK', [channel]) + if self.irc.isInternalClient(target): + # Send PART in response to acknowledge the KICK, per + # https://github.com/evilnet/nefarious2/blob/ed12d64/doc/p10.txt#L611-L616 + self._send(target, 'L %s :%s' % (channel, reason)) + def kill(self, numeric, target, reason): """Sends a kill from a PyLink client/server.""" # <- ABAAA D AyAAA :nefarious.midnight.vpn!GL (test)