IRCP- information gathering tool for irc servers |
git clone git://git.acid.vegas/IRCP.git |
Log | Files | Refs | Archive | README | LICENSE |
commit 356c4d25bee40e9748390840407dc41e542f0bfd
parent e9af84c009b4676e3bb883de098efbcb48563bb5 Author: acidvegas <acid.vegas@acid.vegas> Date: Sat, 27 May 2023 17:33:44 -0400 Improved ban detection & dronebl detection Diffstat:
|
1 file changed, 10 insertions(+), 3 deletions(-) |
diff --git 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:] |