From 7f23634450f3f6e6fc0348d4ffe5be934143ea04 Mon Sep 17 00:00:00 2001 From: deathride58 Date: Sat, 10 Aug 2024 05:18:13 -0400 Subject: [PATCH] [S] hopefully prevents a repeat of 4 am on 8/10/2024 in the #server-leviathan-use channel (#30851) cant test this because the documentation sucks ass but fuck it we ball --- Content.Server/Chat/Managers/ChatManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Chat/Managers/ChatManager.cs b/Content.Server/Chat/Managers/ChatManager.cs index 6bb552d976..ef4373e1e8 100644 --- a/Content.Server/Chat/Managers/ChatManager.cs +++ b/Content.Server/Chat/Managers/ChatManager.cs @@ -257,7 +257,7 @@ namespace Content.Server.Chat.Managers //TODO: player.Name color, this will need to change the structure of the MsgChatMessage ChatMessageToAll(ChatChannel.OOC, message, wrappedMessage, EntityUid.Invalid, hideChat: false, recordReplay: true, colorOverride: colorOverride, author: player.UserId); - _mommiLink.SendOOCMessage(player.Name, message); + _mommiLink.SendOOCMessage(player.Name, message.Replace("@", "\\@").Replace("<", "\\<")); // @ and < are both problematic for discord _adminLogger.Add(LogType.Chat, LogImpact.Low, $"OOC from {player:Player}: {message}"); } -- 2.52.0