1
mirror of git://git.acid.vegas/IRCP.git synced 2024-11-22 16:06:41 +00:00

Added WHOWAS support for 401 (ERR_NOSUCHNICK) replies

This commit is contained in:
Dionysus 2023-06-17 16:09:37 -04:00
parent 9a62ad2cbd
commit f2e774b846
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -376,8 +376,10 @@ class probe:
nick = args[3]
if nick == 'ChanServ':
self.services['chanserv'] = False
if nick == 'NickServ':
elif nick == 'NickServ':
self.services['nickserv'] = False
else:
await self.raw('WHOWAS ' + nick)
elif event == '421' and len(args) >= 3: # ERR_UNKNOWNCOMMAND
msg = ' '.join(args[2:])
if 'You must be connected for' in msg: