Update modules/botnet_protect.py

This commit is contained in:
Nova Cat 2025-01-11 00:54:30 -08:00
parent d0935eb702
commit a80c9c5267

View file

@ -32,7 +32,7 @@ class IRCatModule:
target = value.split(" ")[1] target = value.split(" ")[1]
content = " ".join(value.split(" ")[2:])[1:] content = " ".join(value.split(" ")[2:])[1:]
print([content]) print([content])
if content in sus_strings and self.memory[ip] == 1: if content in self.sus_strings and self.memory[ip] == 1:
self.ban(ip) self.ban(ip)
else: else:
self.memory[ip] = 0 # 0: Trust the connection :3 self.memory[ip] = 0 # 0: Trust the connection :3