Update modules/botnet_protect.py

This commit is contained in:
Nova Cat 2025-02-04 16:52:44 -08:00
parent 6bba7612d9
commit 65a8650845

View file

@ -25,7 +25,7 @@ class IRCatModule:
else:
open(self.ban_provider, "a").write(f"\n{ip} Botnet detected!") # Else, write on the banfile.
raise Exception("Botnet detected!") # Kill the connection
def onSocket(self, ip, socket, value, cachedNick=None, validated=False):
def onSocket(self, ip, socket, value, cachedNick=None, validated=False, *args, **kwargs):
if cachedNick != None:
print(value)
if "JOIN" in value: