Update modules/botnet_protect.py
This commit is contained in:
parent
fd5c004ff1
commit
d0935eb702
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class IRCatModule:
|
||||||
raise Exception("Botnet detected!")
|
raise Exception("Botnet detected!")
|
||||||
def onSocket(self, ip, socket, value, cachedNick=None, validated=False):
|
def onSocket(self, ip, socket, value, cachedNick=None, validated=False):
|
||||||
if cachedNick != None:
|
if cachedNick != None:
|
||||||
if cachedNick + "|" + ip in self.memory and self.memory[cachedNick + "|" + ip] != 0:
|
if not (cachedNick + "|" + ip in self.memory and self.memory[cachedNick + "|" + ip] == 0):
|
||||||
print(value)
|
print(value)
|
||||||
if "JOIN" in value:
|
if "JOIN" in value:
|
||||||
target = value.split(" ")[1]
|
target = value.split(" ")[1]
|
||||||
|
|
Loading…
Add table
Reference in a new issue