Update modules/ban_engine.py

This commit is contained in:
Nova Cat 2025-01-10 18:35:50 -08:00
parent c284166e0f
commit cea8899819

View file

@ -5,12 +5,12 @@ __ircat_giveme__ ["sql"]
class IRCatModule:
memory = {} # {ip: [content]}
useSQLengine = False
def __init__(self, ban_provider, host):
def __init__(self, ban_provider, host, sql):
self.ban_provider = ban_provider
if ban_provider == "sql":
self.host = host
self.useSQLengine = True
self.SQLengine = config
self.SQLengine = sql
def onValidate(self, socket, ip):
print("IP is banned, killing connection now...")
reason = " ".join(i.split(" ")[1:])