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

Method ConServerAlert

src/game/server/gamecontext.cpp:3358–3367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3356}
3357
3358void CGameContext::ConServerAlert(IConsole::IResult *pResult, void *pUserData)
3359{
3360 CGameContext *pSelf = (CGameContext *)pUserData;
3361
3362 char aBuf[1024];
3363 str_copy(aBuf, pResult->GetString(0), sizeof(aBuf));
3364 UnescapeNewlines(aBuf);
3365
3366 pSelf->SendServerAlert(aBuf);
3367}
3368
3369void CGameContext::ConModAlert(IConsole::IResult *pResult, void *pUserData)
3370{

Callers

nothing calls this directly

Calls 4

UnescapeNewlinesFunction · 0.85
SendServerAlertMethod · 0.80
str_copyFunction · 0.50
GetStringMethod · 0.45

Tested by

no test coverage detected