From a2c6b19205146de5a14463d30e082bdb21ee6336 Mon Sep 17 00:00:00 2001 From: rob-v Date: Sun, 20 Jan 2019 22:05:24 +0100 Subject: [PATCH] No player name in replay for chat commands --- OpenRA.Mods.Common/Widgets/Logic/Ingame/IngameChatLogic.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/IngameChatLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/IngameChatLogic.cs index 8ed8470e62..93042427b6 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/IngameChatLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/IngameChatLogic.cs @@ -85,8 +85,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic else if (chatTraits != null) { var text = chatText.Text.Trim(); + var from = world.IsReplay ? null : orderManager.LocalClient.Name; foreach (var trait in chatTraits) - trait.OnChat(orderManager.LocalClient.Name, text); + trait.OnChat(from, text); } }