Update modules/botnet_protect.py
All checks were successful
/ check (push) Successful in 15s

This commit is contained in:
Nova Cat 2025-01-26 20:32:22 -08:00
parent 70acb4f6a6
commit 5f8f6512fe

View file

@ -33,7 +33,7 @@ class IRCatModule:
self.memory[ip] = 1 # 1: Just joined the channel, continue observing.
if target.lower() == "#ircatsucks":
self.ban(ip) # Ruh roh
elif "PRIVMSG" in value
elif "PRIVMSG" in value:
if not (ip in self.memory and self.memory[ip] == 0): # Continue observing
target = value.split(" ")[1]
content = " ".join(value.split(" ")[2:])[1:]