From cac47feac27b15a872ee77bd59801a674d4509cf Mon Sep 17 00:00:00 2001 From: acidvegas Date: Sun, 18 Jun 2023 00:03:18 -0400 Subject: [PATCH] Never initialized family variable in class --- ircp.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ircp.py b/ircp.py index b8547db..86e97c0 100644 --- 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