Update modules/botnet_protect.py

This commit is contained in:
Nova Cat 2025-01-11 00:51:24 -08:00
parent 6a9c2448a6
commit 305f6ebe00

View file

@ -22,6 +22,7 @@ class IRCatModule:
def onSocket(self, ip, socket, value, cachedNick=None, validated=False): def onSocket(self, ip, socket, value, cachedNick=None, validated=False):
if validated: if validated:
if cachedNick + "|" + ip in self.memory and self.memory[cachedNick + "|" + ip] != 0: if cachedNick + "|" + ip in self.memory and self.memory[cachedNick + "|" + ip] != 0:
print(value)
if "JOIN" in value: if "JOIN" in value:
target = value.split(" ")[1] target = value.split(" ")[1]
self.memory[ip] = 1 # 1: Just joined the channel, continue observing. self.memory[ip] = 1 # 1: Just joined the channel, continue observing.