From b52293c2d75fe7e21ae01604e193d1100afeb6ff Mon Sep 17 00:00:00 2001 From: swee Date: Thu, 9 Jan 2025 17:30:46 -0800 Subject: [PATCH] Add modules/ban_engine.py --- modules/ban_engine.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/ban_engine.py diff --git a/modules/ban_engine.py b/modules/ban_engine.py new file mode 100644 index 0000000..b13aa60 --- /dev/null +++ b/modules/ban_engine.py @@ -0,0 +1,15 @@ +import os, sys +from __main__ import config +__ircat_type__ = "allsocket" +__ircat_requires__ = "ban-provider" +class IRCatModule: + memory = {} # {ip: [content]} + useSQLengine = False + def __init__(self, ban_provider): + self.ban_provider = ban_provider + if ban_provider = "sql": + self.useSQLengine = True + def onValidate(self, socket, ip): + pass + def onSocket(self, socket, value, ip, cachedNick=None): + pass \ No newline at end of file