1
mirror of git://git.acid.vegas/IRCP.git synced 2024-12-28 17:36:37 +00:00

Do not add our own nick to the nicklist from WHO

This commit is contained in:
Dionysus 2023-05-31 01:36:59 -04:00
parent ddeeda4d25
commit 3ffd3dfb8c
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -363,7 +363,7 @@ class probe:
self.loops['whois'] = asyncio.create_task(self.loop_whois())
elif numeric == '352' and len(args) >= 8: # RPL_WHORPL
nick = args[7]
if nick not in self.nicks['all']+['BOPM','ChanServ','HOPM']:
if nick not in self.nicks['all']+['BOPM','ChanServ','HOPM',self.nickname]:
self.nicks['all'].append(nick)
self.nicks['check'].append(nick)
elif numeric == '366' and len(args) >= 4: # RPL_ENDOFNAMES