From fd5c004ff1f64716d047c84139ad18525fee1915 Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 11 Jan 2025 00:52:10 -0800 Subject: [PATCH] Update modules/botnet_protect.py --- modules/botnet_protect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/botnet_protect.py b/modules/botnet_protect.py index aebd964..571d5ff 100644 --- a/modules/botnet_protect.py +++ b/modules/botnet_protect.py @@ -20,7 +20,7 @@ class IRCatModule: open(self.ban_provider, "a").write(f"\n{ip} Botnet detected!") raise Exception("Botnet detected!") def onSocket(self, ip, socket, value, cachedNick=None, validated=False): - if validated: + if cachedNick != None: if cachedNick + "|" + ip in self.memory and self.memory[cachedNick + "|" + ip] != 0: print(value) if "JOIN" in value: