mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
modpython: Support global module hooks #98
The commit doesn't add support for the following module hooks:
void OnClientCapLs(CClient* pClient, SCString& ssCaps)
EModRet OnLoginAttempt(CSmartPtr<CAuthBase> Auth)
The reason for this is they do not currently work with codegen.pl
This commit is contained in:
@@ -366,6 +366,46 @@ class Module:
|
||||
def OnEmbeddedWebRequest(self, WebSock, sPageName, Tmpl):
|
||||
pass
|
||||
|
||||
# Global modules
|
||||
def OnAddUser(self, User, sErrorRet):
|
||||
pass
|
||||
|
||||
def OnDeleteUser(self, User):
|
||||
pass
|
||||
|
||||
def OnClientConnect(self, pSock, sHost, uPort):
|
||||
pass
|
||||
|
||||
def OnLoginAttempt(self, Auth):
|
||||
pass
|
||||
|
||||
def OnFailedLogin(self, sUsername, sRemoteIP):
|
||||
pass
|
||||
|
||||
def OnUnknownUserRaw(self, pClient, sLine):
|
||||
pass
|
||||
|
||||
def OnClientCapLs(self, pClient, ssCaps):
|
||||
pass
|
||||
|
||||
def IsClientCapSupported(self, pClient, sCap, bState):
|
||||
pass
|
||||
|
||||
def OnClientCapRequest(self, pClient, sCap, bState):
|
||||
pass
|
||||
|
||||
def OnModuleLoading(self, sModName, sArgs, eType, bSuccess, sRetMsg):
|
||||
pass
|
||||
|
||||
def OnModuleUnloading(self, pModule, bSuccess, sRetMsg):
|
||||
pass
|
||||
|
||||
def OnGetModInfo(self, ModInfo, sModule, bSuccess, sRetMsg):
|
||||
pass
|
||||
|
||||
def OnGetAvailableMods(self, ssMods, eType):
|
||||
pass
|
||||
|
||||
def make_inherit(cl, parent, attr):
|
||||
def make_caller(parent, name, attr):
|
||||
return lambda self, *a: parent.__dict__[name](self.__dict__[attr], *a)
|
||||
|
||||
Reference in New Issue
Block a user