mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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