mirror of
git://git.acid.vegas/IRCP.git
synced 2024-11-22 16:06:41 +00:00
Handle removing channels from the current list when kicked
This commit is contained in:
parent
344421f016
commit
b5188fd38a
6
ircp.py
6
ircp.py
@ -314,6 +314,12 @@ class probe:
|
|||||||
raise Exception(bad.error[check[0]])
|
raise Exception(bad.error[check[0]])
|
||||||
elif args[0] == 'PING':
|
elif args[0] == 'PING':
|
||||||
await self.raw('PONG ' + args[1][1:])
|
await self.raw('PONG ' + args[1][1:])
|
||||||
|
elif event == 'KICK' and len(args) >= 4:
|
||||||
|
chan = args[2]
|
||||||
|
kicked = args[3]
|
||||||
|
if kicked == self.nickname:
|
||||||
|
if chan in self.channels['current']:
|
||||||
|
self.channels['current'].remove(chan)
|
||||||
elif event == 'MODE' and len(args) == 4:
|
elif event == 'MODE' and len(args) == 4:
|
||||||
nick = args[2]
|
nick = args[2]
|
||||||
if nick == self.nickanme:
|
if nick == self.nickanme:
|
||||||
|
Loading…
Reference in New Issue
Block a user