1
mirror of git://git.acid.vegas/IRCP.git synced 2024-11-26 01:46:39 +00:00

Renamed badchans to badchan

This commit is contained in:
Dionysus 2023-06-05 16:13:26 -04:00
parent 5c7f428399
commit e69d2e8739
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -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():