1
mirror of git://git.acid.vegas/IRCP.git synced 2024-11-26 01:46:39 +00:00

Fixed error when being forced joined into channels on connect

This commit is contained in:
Dionysus 2023-06-18 17:56:47 -04:00
parent 6d12aca2d8
commit a8a6c431cb
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -360,8 +360,9 @@ class probe:
elif event == '366' and len(args) >= 4: # RPL_ENDOFNAMES elif event == '366' and len(args) >= 4: # RPL_ENDOFNAMES
chan = args[3] chan = args[3]
self.channels['current'].append(chan) self.channels['current'].append(chan)
debug('{0}\033[32mJOIN\033[0m {1} \033[30m(found \033[93m{2}\033[0m users)\033[0m'.format(self.display, chan, self.channels['users'][chan])) if chan in self.channels['users']:
del self.channels['users'][chan] debug('{0}\033[32mJOIN\033[0m {1} \033[30m(found \033[93m{2}\033[0m users)\033[0m'.format(self.display, chan, self.channels['users'][chan]))
del self.channels['users'][chan]
await self.raw('WHO ' + chan) await self.raw('WHO ' + chan)
await self.raw(f'MODE {chan} +b') await self.raw(f'MODE {chan} +b')
await asyncio.sleep(1) await asyncio.sleep(1)