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

Method AuthRemoveKey

src/engine/server/server.cpp:3602–3619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3600}
3601
3602void CServer::AuthRemoveKey(int KeySlot)
3603{
3604 m_AuthManager.RemoveKey(KeySlot);
3605 LogoutKey(KeySlot, "key removal");
3606
3607 // Update indices.
3608 for(auto &Client : m_aClients)
3609 {
3610 if(Client.m_AuthKey == KeySlot)
3611 {
3612 Client.m_AuthKey = -1;
3613 }
3614 else if(Client.m_AuthKey > KeySlot)
3615 {
3616 --Client.m_AuthKey;
3617 }
3618 }
3619}
3620
3621void CServer::ConAuthAdd(IConsole::IResult *pResult, void *pUser)
3622{

Callers 1

ConAuthRemoveMethod · 0.80

Calls 1

RemoveKeyMethod · 0.80

Tested by

no test coverage detected