]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Figure out how to log minigame chats
authormorosophos <morosophos@teichisma.info>
Fri, 4 Jan 2019 13:47:33 +0000 (15:47 +0200)
committermorosophos <morosophos@teichisma.info>
Fri, 4 Jan 2019 13:47:33 +0000 (15:47 +0200)
qcsrc/server/client.qc

index dc01cb4572519d432351700ff173a3d593599525..5d90516a518caa72fcace15d6181e8458f53adb7 100644 (file)
@@ -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