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

Method ConKick

src/engine/server/server.cpp:3498–3508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3496}
3497
3498void CServer::ConKick(IConsole::IResult *pResult, void *pUser)
3499{
3500 if(pResult->NumArguments() > 1)
3501 {
3502 char aBuf[128];
3503 str_format(aBuf, sizeof(aBuf), "Kicked (%s)", pResult->GetString(1));
3504 ((CServer *)pUser)->Kick(pResult->GetInteger(0), aBuf);
3505 }
3506 else
3507 ((CServer *)pUser)->Kick(pResult->GetInteger(0), "Kicked by console");
3508}
3509
3510void CServer::ConStatus(IConsole::IResult *pResult, void *pUser)
3511{

Callers

nothing calls this directly

Calls 5

str_formatFunction · 0.85
NumArgumentsMethod · 0.80
GetStringMethod · 0.45
KickMethod · 0.45
GetIntegerMethod · 0.45

Tested by

no test coverage detected