mirror of
https://github.com/znc/znc.git
synced 2026-07-04 17:01:23 +02:00
Small cleanup to calling of OnBoot() for user modules
There is no reason to call it indirectly and this should also decrease the binary size a little. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@919 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -72,13 +72,13 @@ bool CZNC::OnBoot() {
|
||||
if (!GetModules().OnBoot()) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
for (map<CString,CUser*>::iterator it = m_msUsers.begin(); it != m_msUsers.end(); it++) {
|
||||
if (!it->second->OnBoot()) {
|
||||
if (!it->second->GetModules().OnBoot()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user