1
mirror of git://git.acid.vegas/IRCP.git synced 2024-12-27 08:56:37 +00:00

Handle removing channels from the current list when kicked

This commit is contained in:
Dionysus 2023-06-18 19:31:53 -04:00
parent 344421f016
commit b5188fd38a
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -314,6 +314,12 @@ class probe:
raise Exception(bad.error[check[0]])
elif args[0] == 'PING':
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:
nick = args[2]
if nick == self.nickanme: