diff options
author | lassulus <lassulus@googlemail.com> | 2014-01-22 03:14:55 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2014-01-22 03:14:55 +0100 |
commit | 877afbca8a57113725f25b1364c1de4526b14db4 (patch) | |
tree | 96ef33c6402aaae9f24b2999acd0d0ef21541415 /IRC | |
parent | 1b322fd7067e7f226b98edaf2e3d22e56469ed71 (diff) |
ircasy: fix on_kick
Diffstat (limited to 'IRC')
-rw-r--r-- | IRC/ircasy.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/IRC/ircasy.py b/IRC/ircasy.py index e32179b..150498d 100644 --- a/IRC/ircasy.py +++ b/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 |