mirror of
git://git.acid.vegas/IRCP.git
synced 2024-11-23 00:16:41 +00:00
Fixed error when being forced joined into channels on connect
This commit is contained in:
parent
6d12aca2d8
commit
a8a6c431cb
5
ircp.py
5
ircp.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user