Use minigame.netname instead of minigame entity id in the event log
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index 5d90516..b136800 100644 (file)
@@ -2957,7 +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);
                        });
-                       event_log_msg = sprintf(":chat_minigame:%d:%d:%s", source.playerid, etof(CS(source).active_minigame), msgin);
+                       event_log_msg = sprintf(":chat_minigame:%d:%s:%s", source.playerid, CS(source).active_minigame.netname, msgin);
 
                }
                else if(teamsay > 0) // team message, only sent to team mates