1
mirror of git://git.acid.vegas/IRCP.git synced 2024-11-23 00:16:41 +00:00

Improved ban detection & dronebl detection

This commit is contained in:
Dionysus 2023-05-27 17:33:44 -04:00
parent e9af84c009
commit 356c4d25be
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -314,9 +314,16 @@ class probe:
msg = ' '.join(args[3:])[1:] msg = ' '.join(args[3:])[1:]
if nick == 'NickServ': if nick == 'NickServ':
self.snapshot['services'] = True self.snapshot['services'] = True
elif '!' not in args[0]:
for i in ('You must have been using this nick for','You must be connected for','not connected long enough','Please wait', 'You cannot list within the first'): for i in ('You must have been using this nick for','You must be connected for','not connected long enough','Please wait', 'You cannot list within the first'):
if i in msg: if i in msg:
error(self.server + 'delay found', msg) error(self.server + 'delay found', msg)
if 'dronebl.org/lookup' in msg:
error(self.server + 'dronebl detected')
else:
for i in ('You\'re banned','You are permanently banned','You are banned','You are not welcome'):
if i in msg:
error(self.server + 'banned')
elif numeric == 'PRIVMSG' and len(args) >= 4: elif numeric == 'PRIVMSG' and len(args) >= 4:
nick = args[0].split('!')[0][1:] nick = args[0].split('!')[0][1:]
msg = ' '.join(args[3:])[1:] msg = ' '.join(args[3:])[1:]