Add new module calls for writing config entries

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1803 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-03-04 13:20:44 +00:00
parent 415754dd16
commit b0128cf130
5 changed files with 50 additions and 1 deletions

View File

@@ -495,6 +495,9 @@ bool CModule::PutModNotice(const CString& sLine, const CString& sIdent, const CS
// CGlobalModule //
///////////////////
CModule::EModRet CGlobalModule::OnConfigLine(const CString& sName, const CString& sValue, CUser* pUser, CChan* pChan) { return CONTINUE; }
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::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; }
@@ -597,6 +600,18 @@ bool CGlobalModules::OnConfigLine(const CString& sName, const CString& sValue, C
GLOBALMODHALTCHK(OnConfigLine(sName, sValue, pUser, pChan));
}
bool CGlobalModules::OnWriteConfig(CFile& Config) {
GLOBALMODHALTCHK(OnWriteConfig(Config));
}
void CGlobalModules::OnWriteUserConfig(CFile& Config, CUser& User) {
GLOBALMODCALL(OnWriteUserConfig(Config, User));
}
void CGlobalModules::OnWriteChanConfig(CFile& Config, CChan& Chan) {
GLOBALMODCALL(OnWriteChanConfig(Config, Chan));
}
bool CGlobalModules::OnDeleteUser(CUser& User) {
GLOBALMODHALTCHK(OnDeleteUser(User));
}