mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Clarify the last commit a bit using a comment.
This commit is contained in:
@@ -643,6 +643,8 @@ bool CUser::Clone(const CUser& User, CString& sErrorRet, bool bCloneChans) {
|
||||
|
||||
while (vClients.begin() != vClients.end()) {
|
||||
CClient *pClient = vClients.front();
|
||||
// This line will remove pClient from vClients,
|
||||
// because it's a reference to the internal Network's vector.
|
||||
pClient->SetNetwork(NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user