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:
psychon
2008-01-08 19:48:45 +00:00
parent 5210c3bfae
commit cc20744683
3 changed files with 2 additions and 11 deletions
+2 -2
View File
@@ -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;
}