MCPcopy Create free account
hub / github.com/ddnet/ddnet / GetAuthName

Method GetAuthName

src/engine/server/server.cpp:672–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672const 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
681bool CServer::HasAuthHidden(int ClientId) const
682{

Callers 2

ConDrySaveMethod · 0.80
OnSetAuthedMethod · 0.80

Calls 1

KeyIdentMethod · 0.80

Tested by

no test coverage detected