Add CIRCNetwork::FindClient(const CString& sIdentifier)

This commit is contained in:
J-P Nurmi
2014-09-28 16:01:05 +02:00
parent 8d77faa260
commit 20c9b19328
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -669,6 +669,16 @@ const CString& CIRCNetwork::GetName() const {
return m_sName;
}
CClient* CIRCNetwork::FindClient(const CString& sIdentifier) const {
for (CClient* pClient : m_vClients) {
if (pClient->GetIdentifier().Equals(sIdentifier)) {
return pClient;
}
}
return NULL;
}
void CIRCNetwork::SetUser(CUser *pUser) {
for (unsigned int a = 0; a < m_vClients.size(); a++) {
m_vClients[a]->PutStatus("This network is being deleted or moved to another user.");