mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Added a new module hook
EModRet OnAddUser(CUser& User, CString& sErrorRet) for global modules. Idea by BrianC. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1820 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -498,6 +498,7 @@ CModule::EModRet CGlobalModule::OnConfigLine(const CString& sName, const CString
|
||||
CModule::EModRet CGlobalModule::OnWriteConfig(CFile& Config) { return CONTINUE; }
|
||||
void CGlobalModule::OnWriteUserConfig(CFile& Config, CUser& User) {}
|
||||
void CGlobalModule::OnWriteChanConfig(CFile& Config, CChan& Chan) {}
|
||||
CModule::EModRet CGlobalModule::OnAddUser(CUser& User, CString& sErrorRet) { return CONTINUE; }
|
||||
CModule::EModRet CGlobalModule::OnDeleteUser(CUser& User) { return CONTINUE; }
|
||||
void CGlobalModule::OnClientConnect(CClient* pClient, const CString& sHost, unsigned short uPort) {}
|
||||
CModule::EModRet CGlobalModule::OnLoginAttempt(CSmartPtr<CAuthBase> Auth) { return CONTINUE; }
|
||||
@@ -612,6 +613,10 @@ void CGlobalModules::OnWriteChanConfig(CFile& Config, CChan& Chan) {
|
||||
GLOBALMODCALL(OnWriteChanConfig(Config, Chan));
|
||||
}
|
||||
|
||||
bool CGlobalModules::OnAddUser(CUser& User, CString& sErrorRet) {
|
||||
GLOBALMODHALTCHK(OnAddUser(User, sErrorRet));
|
||||
}
|
||||
|
||||
bool CGlobalModules::OnDeleteUser(CUser& User) {
|
||||
GLOBALMODHALTCHK(OnDeleteUser(User));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user