From: morosophos Date: Fri, 4 Jan 2019 13:47:33 +0000 (+0200) Subject: Figure out how to log minigame chats X-Git-Tag: xonotic-v0.8.5~1668^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=06b8fc0493fafe4120b20615daffb5d5d02a8f3e;p=xonotic%2Fxonotic-data.pk3dir.git Figure out how to log minigame chats --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index dc01cb457..5d90516a5 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -2957,8 +2957,7 @@ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodc FOREACH_CLIENT(IS_REAL_CLIENT(it) && it != source && CS(it).active_minigame == CS(source).active_minigame && !MUTATOR_CALLHOOK(ChatMessageTo, it, source), { sprint(it, msgstr); }); - // IDK if the following works: - // event_log_msg = sprintf(":chat_team_minigame:%d:%d:%s", source, CS(source).active_minigame, msgin); + event_log_msg = sprintf(":chat_minigame:%d:%d:%s", source.playerid, etof(CS(source).active_minigame), msgin); } else if(teamsay > 0) // team message, only sent to team mates