mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Remove OnRehashDone and add OnPre/PostRehash
This patch is from SilverLeo. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1046 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
12
znc.cpp
12
znc.cpp
@@ -855,6 +855,14 @@ bool CZNC::ParseConfig(const CString& sConfig)
|
||||
|
||||
bool CZNC::RehashConfig(CString& sError)
|
||||
{
|
||||
#ifdef _MODULES
|
||||
GetModules().OnPreRehash();
|
||||
for (map<CString, CUser*>::iterator itb = m_msUsers.begin();
|
||||
itb != m_msUsers.end(); itb++) {
|
||||
itb->second->GetModules().OnPreRehash();
|
||||
}
|
||||
#endif
|
||||
|
||||
// This clears m_msDelUsers
|
||||
HandleUserDeletion();
|
||||
|
||||
@@ -864,10 +872,10 @@ bool CZNC::RehashConfig(CString& sError)
|
||||
|
||||
if (DoRehash(sError)) {
|
||||
#ifdef _MODULES
|
||||
GetModules().OnRehashDone();
|
||||
GetModules().OnPostRehash();
|
||||
for (map<CString, CUser*>::iterator it = m_msUsers.begin();
|
||||
it != m_msUsers.end(); it++) {
|
||||
it->second->GetModules().OnRehashDone();
|
||||
it->second->GetModules().OnPostRehash();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user