Delete the clients and modules before the user

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@649 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2006-02-12 10:09:00 +00:00
parent 8fa81829b3
commit 3d7bf1fce8
3 changed files with 30 additions and 7 deletions

View File

@@ -84,6 +84,10 @@ int CZNC::Loop() {
m_Manager.DelSockByAddr(pIRCSock);
}
pUser->DelClients();
#ifdef _MODULES
pUser->DelModules();
#endif
delete pUser;
}
@@ -249,7 +253,7 @@ void CZNC::DeleteUsers() {
}
m_msUsers.clear();
m_itUserIter = m_msUsers.end();
m_itUserIter = m_msUsers.begin();
}
CUser* CZNC::GetUser(const CString& sUser) {