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

Method ConHideAuthStatus

src/engine/server/server.cpp:3999–4017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3997}
3998
3999void CServer::ConHideAuthStatus(IConsole::IResult *pResult, void *pUser)
4000{
4001 CServer *pServer = (CServer *)pUser;
4002
4003 if(pServer->m_RconClientId >= 0 && pServer->m_RconClientId < MAX_CLIENTS &&
4004 pServer->m_aClients[pServer->m_RconClientId].m_State != CServer::CClient::STATE_EMPTY)
4005 {
4006 if(pResult->NumArguments())
4007 {
4008 pServer->m_aClients[pServer->m_RconClientId].m_AuthHidden = pResult->GetInteger(0);
4009 }
4010 else
4011 {
4012 char aStr[9];
4013 str_format(aStr, sizeof(aStr), "Value: %d", pServer->m_aClients[pServer->m_RconClientId].m_AuthHidden);
4014 pServer->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", aStr);
4015 }
4016 }
4017}
4018
4019void CServer::ConForceHighBandwidthOnSpectate(IConsole::IResult *pResult, void *pUser)
4020{

Callers

nothing calls this directly

Calls 5

str_formatFunction · 0.85
NumArgumentsMethod · 0.80
GetIntegerMethod · 0.45
PrintMethod · 0.45
ConsoleMethod · 0.45

Tested by

no test coverage detected