summaryrefslogtreecommitdiffstats
path: root/Reaktor/IRC
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-01-22 03:14:55 +0100
committerlassulus <lassulus@googlemail.com>2014-01-22 03:14:55 +0100
commit37d5c80ab68f28b453aaf38fce8aa944e010d360 (patch)
treeeb433578b5da448ecc8973770771a475bc31373a /Reaktor/IRC
parent3ca518888e9e72f80984dccb8afb1bde31a547dd (diff)
ircasy: fix on_kick
Diffstat (limited to 'Reaktor/IRC')
-rw-r--r--Reaktor/IRC/ircasy.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Reaktor/IRC/ircasy.py b/Reaktor/IRC/ircasy.py
index e32179bb..150498dd 100644
--- a/Reaktor/IRC/ircasy.py
+++ b/Reaktor/IRC/ircasy.py
@@ -165,8 +165,10 @@ class asybot(asychat):
self.push('JOIN %s' % ','.join(self.channels))
def on_kick(self, prefix, command, params, rest):
- for chan in params:
- self.channels.remove(chan)
+ self.log.debug(params)
+ if params[-1] == self.nickname:
+ for chan in params[:-1]:
+ self.channels.remove(chan)
def on_privmsg(self, prefix, command, params, rest):
pass