Make port and client ID integers on /modhelp POST

This commit is contained in:
heinrich5991 2018-06-23 19:39:38 +02:00
parent 56876c7516
commit e5e05081a7

View file

@ -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,