diff --git a/Content.Server/Chat/Systems/ChatSystem.cs b/Content.Server/Chat/Systems/ChatSystem.cs index 6013f1b1a4..1a1ca190f7 100644 --- a/Content.Server/Chat/Systems/ChatSystem.cs +++ b/Content.Server/Chat/Systems/ChatSystem.cs @@ -435,11 +435,12 @@ public sealed partial class ChatSystem : SharedChatSystem name = FormattedMessage.EscapeText(name); // color the name unless it's something like "the old man" + string coloredName = name; if (!TryComp(source, out var grammar) || grammar.ProperNoun == true) - name = $"[color={GetNameColor(name)}]{name}[/color]"; + coloredName = $"[color={GetNameColor(name)}]{name}[/color]"; var wrappedMessage = Loc.GetString(speech.Bold ? "chat-manager-entity-say-bold-wrap-message" : "chat-manager-entity-say-wrap-message", - ("entityName", name), + ("entityName", coloredName), ("verb", Loc.GetString(_random.Pick(speech.SpeechVerbStrings))), ("fontType", speech.FontId), ("fontSize", speech.FontSize),