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:
cflakes
2010-03-09 20:24:43 +00:00
parent cbb6e14c3a
commit 28022ca771
3 changed files with 18 additions and 0 deletions

View File

@@ -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));
}