From 06b8fc0493fafe4120b20615daffb5d5d02a8f3e Mon Sep 17 00:00:00 2001 From: morosophos Date: Fri, 4 Jan 2019 15:47:33 +0200 Subject: [PATCH] Figure out how to log minigame chats --- qcsrc/server/client.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.2