mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Make port and client ID integers on /modhelp POST
This commit is contained in:
parent
56876c7516
commit
e5e05081a7
|
@ -1450,7 +1450,7 @@ void CGameContext::ConModHelp(IConsole::IResult *pResult, void *pUserData)
|
|||
char aJson[512];
|
||||
char aPlayerName[64];
|
||||
char aMessage[128];
|
||||
str_format(aJson, sizeof(aJson), "{\"port\":\"%d\",\"moderator_present\":%s,\"player_id\":\"%d\",\"player_name\":\"%s\",\"message\":\"%s\"}",
|
||||
str_format(aJson, sizeof(aJson), "{\"port\":%d,\"moderator_present\":%s,\"player_id\":%d,\"player_name\":\"%s\",\"message\":\"%s\"}",
|
||||
g_Config.m_SvPort,
|
||||
ModeratorPresent ? "true" : "false",
|
||||
pResult->m_ClientID,
|
||||
|
|
Loading…
Reference in a new issue