diff --git a/modules/botnet_protect.py b/modules/botnet_protect.py index ab0aab0..863440b 100644 --- a/modules/botnet_protect.py +++ b/modules/botnet_protect.py @@ -31,8 +31,7 @@ class IRCatModule: elif "PRIVMSG" in value: target = value.split(" ")[1] content = " ".join(value.split(" ")[2:])[1:] - print([content]) - if content in self.sus_strings and self.memory[ip] == 1: + if content in self.sus_strings and (cachedNick + "|" + ip in self.memory and self.memory[cachedNick + "|" + ip] == 1): self.ban(ip) else: self.memory[ip] = 0 # 0: Trust the connection :3 \ No newline at end of file