From f2e774b846af10459c879797155de1425bd5b8b3 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Sat, 17 Jun 2023 16:09:37 -0400 Subject: [PATCH] Added WHOWAS support for 401 (ERR_NOSUCHNICK) replies --- ircp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ircp.py b/ircp.py index 9d064c1..fc50247 100644 --- a/ircp.py +++ b/ircp.py @@ -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: