From e69d2e8739e47adc8f4d80d0c8b19920d1b423ec Mon Sep 17 00:00:00 2001 From: acidvegas Date: Mon, 5 Jun 2023 16:13:26 -0400 Subject: [PATCH] Renamed badchans to badchan --- ircp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircp.py b/ircp.py index 0582654..0fc60af 100644 --- a/ircp.py +++ b/ircp.py @@ -245,11 +245,11 @@ class probe: self.snapshot['RAW'] = self.snapshot['RAW']+[line,] if 'RAW' in self.snapshot else [line,] else: self.snapshot[event] = self.snapshot[event]+[line,] if event in self.snapshot else [line,] - if event in badchans and len(args) >= 4: + if event in badchan and len(args) >= 4: chan = args[3] if chan in self.channels['users']: del self.channels['users'][chan] - error(f'{self.display}\033[31merror\033[0m - {chan}', badchans[event]) + error(f'{self.display}\033[31merror\033[0m - {chan}', badchan[event]) elif line.startswith('ERROR :'): if line.startswith('ERROR :Closing Link'): if 'dronebl' in line.lower():