| 3977 | } |
| 3978 | |
| 3979 | void CServer::ConShowIps(IConsole::IResult *pResult, void *pUser) |
| 3980 | { |
| 3981 | CServer *pServer = (CServer *)pUser; |
| 3982 | |
| 3983 | if(pServer->m_RconClientId >= 0 && pServer->m_RconClientId < MAX_CLIENTS && |
| 3984 | pServer->m_aClients[pServer->m_RconClientId].m_State != CServer::CClient::STATE_EMPTY) |
| 3985 | { |
| 3986 | if(pResult->NumArguments()) |
| 3987 | { |
| 3988 | pServer->m_aClients[pServer->m_RconClientId].m_ShowIps = pResult->GetInteger(0); |
| 3989 | } |
| 3990 | else |
| 3991 | { |
| 3992 | char aStr[9]; |
| 3993 | str_format(aStr, sizeof(aStr), "Value: %d", pServer->m_aClients[pServer->m_RconClientId].m_ShowIps); |
| 3994 | pServer->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", aStr); |
| 3995 | } |
| 3996 | } |
| 3997 | } |
| 3998 | |
| 3999 | void CServer::ConHideAuthStatus(IConsole::IResult *pResult, void *pUser) |
| 4000 | { |
nothing calls this directly
no test coverage detected