mirror of
https://github.com/znc/znc.git
synced 2026-05-03 20:12:29 +02:00
Remove OnFinishedConfig() module call
No one used it anyway git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@909 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -547,7 +547,6 @@ 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; }
|
||||
void CGlobalModule::OnFinishedConfig() {}
|
||||
CModule::EModRet CGlobalModule::OnDeleteUser(CUser& User) { return CONTINUE; }
|
||||
CModule::EModRet CGlobalModule::OnLoginAttempt(CSmartPtr<CAuthBase> Auth) { return CONTINUE; }
|
||||
void CGlobalModule::OnFailedLogin(const CString& sUsername, const CString& sRemoteIP) {}
|
||||
@@ -634,10 +633,6 @@ bool CGlobalModules::OnConfigLine(const CString& sName, const CString& sValue, C
|
||||
GLOBALMODHALTCHK(OnConfigLine(sName, sValue, pUser, pChan));
|
||||
}
|
||||
|
||||
void CGlobalModules::OnFinishedConfig() {
|
||||
GLOBALMODCALL(OnFinishedConfig());
|
||||
}
|
||||
|
||||
bool CGlobalModules::OnDeleteUser(CUser& User) {
|
||||
GLOBALMODHALTCHK(OnDeleteUser(User));
|
||||
}
|
||||
|
||||
@@ -427,7 +427,6 @@ public:
|
||||
virtual ~CGlobalModule() {}
|
||||
|
||||
virtual EModRet OnConfigLine(const CString& sName, const CString& sValue, CUser* pUser, CChan* pChan);
|
||||
virtual void OnFinishedConfig();
|
||||
virtual EModRet OnDeleteUser(CUser& User);
|
||||
virtual EModRet OnLoginAttempt(CSmartPtr<CAuthBase> Auth);
|
||||
virtual void OnFailedLogin(const CString& sUsername, const CString& sRemoteIP);
|
||||
@@ -440,7 +439,6 @@ public:
|
||||
virtual ~CGlobalModules() {}
|
||||
|
||||
virtual bool OnConfigLine(const CString& sName, const CString& sValue, CUser* pUser, CChan* pChan);
|
||||
virtual void OnFinishedConfig();
|
||||
virtual bool OnDeleteUser(CUser& User);
|
||||
virtual bool OnLoginAttempt(CSmartPtr<CAuthBase> Auth);
|
||||
virtual void OnFailedLogin(const CString& sUsername, const CString& sRemoteIP);
|
||||
|
||||
@@ -54,6 +54,9 @@ public:
|
||||
}
|
||||
|
||||
virtual bool OnBoot() {
|
||||
// The config is now read completely, so all Users are set up
|
||||
Load();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -83,10 +86,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
void OnFinishedConfig() {
|
||||
Load();
|
||||
}
|
||||
|
||||
void Load() {
|
||||
VCString vsChannels;
|
||||
for (MCString::iterator it = BeginNV(); it != EndNV(); it++) {
|
||||
|
||||
Reference in New Issue
Block a user