IRCP

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

commit 0325e73ebf1b9857028227195d8a0f889fa931a3
parent 349a74b79eb0e3ee22b6318b26449bfcbe8d2158
Author: acidvegas <acid.vegas@acid.vegas>
Date: Sat, 17 Jun 2023 23:24:35 -0400

Store new nickname on 401 ERR_NICKINUSE

Diffstat:
Mircp.py | 6++----

1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/ircp.py b/ircp.py
@@ -385,10 +385,8 @@ class probe:
 					if 'You must be connected for' in msg:
 						error(self.display + '\033[31merror\033[0m - delay found', msg)
 				elif event == '433': # ERR_NICKINUSE
-					if not settings.nickname:
-						await self.raw('NICK ' + rndnick())
-					else:
-						await self.raw('NICK ' + settings.nickname + str(random.randint(1000,9999)))
+					self.nickanme = rndnick()
+					await self.raw('NICK ' + self.nickname)
 				elif event == '439' and len(args) >= 5: # ERR_TARGETTOOFAST
 					chan = args[3]
 					msg  = ' '.join(args[4:])[1:]