Update modules/botnet_protect.py
This commit is contained in:
parent
42af8fa12c
commit
13c9be92fe
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class IRCatModule:
|
|||
raise Exception("Botnet detected!")
|
||||
def onSocket(self, ip, socket, value, cachedNick=None, validated=False):
|
||||
if validated:
|
||||
if self.memory[cachedNick + "|" + ip] != True:
|
||||
if cachedNick + "|" + ip in self.memory and self.memory[cachedNick + "|" + ip] != True:
|
||||
if "JOIN" in value:
|
||||
target = value.split(" ")[1]
|
||||
self.memory[cachedNick + "|" + ip][target] = 1 # 1: Just joined the channel, continue observing.
|
||||
|
|
Loading…
Add table
Reference in a new issue