Update modules/botnet_protect.py

This commit is contained in:
Nova Cat 2025-01-11 00:56:07 -08:00
parent a80c9c5267
commit dfe16d8408

View file

@ -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