From 1e59932237e30c60f1742ac4d3d0f85889aae7c8 Mon Sep 17 00:00:00 2001 From: swee Date: Sun, 26 Jan 2025 20:27:35 -0800 Subject: [PATCH] Update modules/botnet_protect.py --- modules/botnet_protect.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/botnet_protect.py b/modules/botnet_protect.py index 9f1ac13..b4ed794 100644 --- a/modules/botnet_protect.py +++ b/modules/botnet_protect.py @@ -31,14 +31,14 @@ class IRCatModule: self.memory[ip] = 1 # 1: Just joined the channel, continue observing. print("Autoban> Somebody joined " + target) if target.lower() == "#ircatsucks": - self.ban(ip) - elif "PRIVMSG" in value: - if not (ip in self.memory and self.memory[ip] == 0): + self.ban(ip) # Ruh roh + elif "PRIVMSG" in value + if not (ip in self.memory and self.memory[ip] == 0): # Continue observing target = value.split(" ")[1] content = " ".join(value.split(" ")[2:])[1:] if content in self.sus_strings: - if ip in self.memory: + if ip in self.memory: # Hey stinky! YOU'RE BANNED if self.memory[ip] == 1: self.ban(ip) else: - self.memory[ip] = 0 # 0: Trust the connection :3 \ No newline at end of file + self.memory[ip] = 0 # 0: Trust the connection :3 \ No newline at end of file