From 36a93320d78b2add8883f4054f5b617ad15cc604 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 7 Jun 2015 10:06:54 -0700 Subject: [PATCH] Oops, we need kick handling too! --- proto.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proto.py b/proto.py index 6ac4815..7a63803 100644 --- a/proto.py +++ b/proto.py @@ -100,6 +100,12 @@ def handle_privmsg(irc, source, command, args): msg(irc, source, 'Uncaught exception in command %r: %s: %s' % (cmd, type(e).__name__, str(e))) return +def handle_kick(irc, source, command, args): + # :70MAAAAAA KICK #endlessvoid 70MAAAAAA :some reason + channel = args[0] + kicked = args[1] + irc.channels[channel].users.discard(kicked) + def handle_part(irc, source, command, args): channel = args[0] # We should only get PART commands for channels that exist, right??