IRCP

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

commit cac47feac27b15a872ee77bd59801a674d4509cf
parent 0325e73ebf1b9857028227195d8a0f889fa931a3
Author: acidvegas <acid.vegas@acid.vegas>
Date: Sun, 18 Jun 2023 00:03:18 -0400

Never initialized family variable in class

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

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

diff --git a/ircp.py b/ircp.py
@@ -105,20 +105,21 @@ def ssl_ctx():
 
 class probe:
 	def __init__(self, semaphore, server, port, family=2):
+		self.semaphore = semaphore
 		self.server    = server
 		self.port      = 6697
 		self.oport     = port
+		self.family    = family
 		self.display   = server.ljust(18)+' \033[30m|\033[0m unknown network           \033[30m|\033[0m '
-		self.semaphore = semaphore
 		self.nickname  = None
-		self.snapshot  = dict()
 		self.multi     = ''
+		self.snapshot  = dict()
 		self.channels  = {'all':list(), 'current':list(), 'users':dict()}
 		self.nicks     = {'all':list(), 'check':list()}
 		self.loops     = {'init':None, 'chan':None, 'nick':None, 'whois':None}
 		self.login     = {'pass': settings.ns_pass if settings.ns_pass else rndnick(), 'mail': settings.ns_mail if settings.ns_mail else f'{rndnick()}@{rndnick()}.'+random.choice(('com','net','org'))}
-		self.jthrottle = throttle.join
 		self.services  = {'chanserv':True, 'nickserv':True}
+		self.jthrottle = throttle.join
 		self.reader    = None
 		self.write     = None