]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
[S] hopefully prevents a repeat of 4 am on 8/10/2024 in the #server-leviathan-use...
authordeathride58 <deathride58@users.noreply.github.com>
Sat, 10 Aug 2024 09:18:13 +0000 (05:18 -0400)
committerGitHub <noreply@github.com>
Sat, 10 Aug 2024 09:18:13 +0000 (19:18 +1000)
cant test this because the documentation sucks ass but fuck it we ball

Content.Server/Chat/Managers/ChatManager.cs

index 6bb552d9769f8dcafed0eec5dda331a5a82357da..ef4373e1e81d55e7b94e7e83cbfb30fdd2c87427 100644 (file)
@@ -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}");
         }