mirror of
https://github.com/iio612/DEFENDER.git
synced 2026-02-13 11:14:23 +00:00
Add command handler system. Starting adapt the modules to fit other protocls.
This commit is contained in:
@@ -93,6 +93,7 @@ class MReputation(MainModel):
|
||||
umodes: str = None
|
||||
vhost: str = None
|
||||
fingerprint: str = None
|
||||
tls_cipher: str = None
|
||||
isWebirc: bool = False
|
||||
isWebsocket: bool = False
|
||||
remote_ip: str = None
|
||||
@@ -368,4 +369,14 @@ class MSasl(MainModel):
|
||||
fingerprint: Optional[str] = None
|
||||
language: str = "EN"
|
||||
auth_success: bool = False
|
||||
level: int = 0
|
||||
level: int = 0
|
||||
|
||||
@dataclass
|
||||
class MRegister:
|
||||
command_name: str
|
||||
func: Any
|
||||
|
||||
@dataclass
|
||||
class MIrcdCommand:
|
||||
command_name: str
|
||||
func: Any
|
||||
Reference in New Issue
Block a user