Add modules/ban_engine.py
This commit is contained in:
parent
f63c4d0bb4
commit
b52293c2d7
1 changed files with 15 additions and 0 deletions
15
modules/ban_engine.py
Normal file
15
modules/ban_engine.py
Normal file
|
@ -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
|
Loading…
Reference in a new issue