| 670 | } |
| 671 | |
| 672 | const char *CServer::GetAuthName(int ClientId) const |
| 673 | { |
| 674 | dbg_assert(ClientId >= 0 && ClientId < MAX_CLIENTS, "Invalid ClientId: %d", ClientId); |
| 675 | dbg_assert(m_aClients[ClientId].m_State != CServer::CClient::STATE_EMPTY, "Client slot %d is empty", ClientId); |
| 676 | int Key = m_aClients[ClientId].m_AuthKey; |
| 677 | dbg_assert(Key != -1, "Client not authed"); |
| 678 | return m_AuthManager.KeyIdent(Key); |
| 679 | } |
| 680 | |
| 681 | bool CServer::HasAuthHidden(int ClientId) const |
| 682 | { |
no test coverage detected