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
-8
View File
@@ -96,14 +96,6 @@ void CUser::DelClients() {
m_vClients.clear();
}
bool CUser::OnBoot() {
#ifdef _MODULES
return GetModules().OnBoot();
#else
return true;
#endif
}
void CUser::IRCConnected(CIRCSock* pIRCSock) {
for (unsigned int a = 0; a < m_vClients.size(); a++) {
m_vClients[a]->IRCConnected(pIRCSock);
-1
View File
@@ -78,7 +78,6 @@ public:
void ClearMotdBuffer() { m_MotdBuffer.Clear(); }
void ClearQueryBuffer() { m_QueryBuffer.Clear(); }
// !Buffers
bool OnBoot();
bool PutIRC(const CString& sLine);
bool PutUser(const CString& sLine, CClient* pClient = NULL, CClient* pSkipClient = NULL);
+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;
}