IRCP

- information gathering tool for irc servers
git clone git://git.acid.vegas/IRCP.git
Log | Files | Refs | Archive | README | LICENSE

commit f2e774b846af10459c879797155de1425bd5b8b3
parent 9a62ad2cbdf22dc2ee854a1dc51c9cd8fb1e1221
Author: acidvegas <acid.vegas@acid.vegas>
Date: Sat, 17 Jun 2023 16:09:37 -0400

Added WHOWAS support for 401 (ERR_NOSUCHNICK) replies

Diffstat:
Mircp.py | 4+++-

1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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: