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

Method SendRconLogLine

src/engine/server/server.cpp:1422–1441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1420}
1421
1422void CServer::SendRconLogLine(int ClientId, const CLogMessage *pMessage)
1423{
1424 char aLine[sizeof(CLogMessage().m_aLine)];
1425 char aLineWithoutIps[sizeof(CLogMessage().m_aLine)];
1426 StrHideIps(pMessage->m_aLine, aLine, sizeof(aLine), aLineWithoutIps, sizeof(aLineWithoutIps));
1427
1428 if(ClientId == -1)
1429 {
1430 for(int i = 0; i < MAX_CLIENTS; i++)
1431 {
1432 if(m_aClients[i].m_State != CClient::STATE_EMPTY && IsRconAuthedAdmin(i))
1433 SendRconLine(i, m_aClients[i].m_ShowIps ? aLine : aLineWithoutIps);
1434 }
1435 }
1436 else
1437 {
1438 if(m_aClients[ClientId].m_State != CClient::STATE_EMPTY)
1439 SendRconLine(ClientId, m_aClients[ClientId].m_ShowIps ? aLine : aLineWithoutIps);
1440 }
1441}
1442
1443void CServer::SendRconCmdAdd(const IConsole::ICommandInfo *pCommandInfo, int ClientId)
1444{

Callers 1

LogMethod · 0.80

Calls 1

CLogMessageClass · 0.70

Tested by

no test coverage detected