mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Destroy the CIRCSock for a network when the CIRCNetwork is destroyed
This commit is contained in:
11
znc.cpp
11
znc.cpp
@@ -169,17 +169,6 @@ bool CZNC::HandleUserDeletion()
|
||||
continue;
|
||||
}
|
||||
m_msUsers.erase(pUser->GetUserName());
|
||||
|
||||
vector<CIRCNetwork*> vNetworks;
|
||||
for (vector<CIRCNetwork*>::iterator it2 = vNetworks.begin(); it2 != vNetworks.end(); ++it2) {
|
||||
CIRCNetwork *pNetwork = *it2;
|
||||
CIRCSock* pIRCSock = pNetwork->GetIRCSock();
|
||||
|
||||
if (pIRCSock) {
|
||||
m_Manager.DelSockByAddr(pIRCSock);
|
||||
}
|
||||
}
|
||||
|
||||
CWebSock::FinishUserSessions(*pUser);
|
||||
delete pUser;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user