Update modules/botnet_protect.py
This commit is contained in:
parent
a80c9c5267
commit
dfe16d8408
1 changed files with 1 additions and 2 deletions
|
@ -31,8 +31,7 @@ class IRCatModule:
|
||||||
elif "PRIVMSG" in value:
|
elif "PRIVMSG" in value:
|
||||||
target = value.split(" ")[1]
|
target = value.split(" ")[1]
|
||||||
content = " ".join(value.split(" ")[2:])[1:]
|
content = " ".join(value.split(" ")[2:])[1:]
|
||||||
print([content])
|
if content in self.sus_strings and (cachedNick + "|" + ip in self.memory and self.memory[cachedNick + "|" + 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
|
Loading…
Add table
Reference in a new issue