mirror of
https://github.com/znc/znc.git
synced 2026-05-03 12:02:30 +02:00
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:
6
znc.cpp
6
znc.cpp
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user