From 356c4d25bee40e9748390840407dc41e542f0bfd Mon Sep 17 00:00:00 2001 From: acidvegas Date: Sat, 27 May 2023 17:33:44 -0400 Subject: [PATCH] Improved ban detection & dronebl detection --- ircp.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ircp.py b/ircp.py index b57563b..2045b62 100644 --- a/ircp.py +++ b/ircp.py @@ -314,9 +314,16 @@ class probe: msg = ' '.join(args[3:])[1:] if nick == 'NickServ': self.snapshot['services'] = True - 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: - error(self.server + 'delay found', msg) + 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'): + if i in 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: nick = args[0].split('!')[0][1:] msg = ' '.join(args[3:])[1:]