Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Chatsan fixes to emote entries ending with letters. (new-frontiers-14…
Browse files Browse the repository at this point in the history
…#2292)

* add periods to chatsan entries ending with letters

* Move emote sanitization above cap/punct san.
  • Loading branch information
whatston3 authored Oct 20, 2024
1 parent 66f4a02 commit e2b3a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Chat/Systems/ChatSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -756,15 +756,15 @@ private string SanitizeInGameICMessage(EntityUid source, string message, out str
var newMessage = message.Trim();
newMessage = SanitizeMessageReplaceWords(newMessage);

_sanitizer.TrySanitizeOutSmilies(newMessage, source, out newMessage, out emoteStr); // Frontier: moved up from bottom of function

if (capitalize)
newMessage = SanitizeMessageCapital(newMessage);
if (capitalizeTheWordI)
newMessage = SanitizeMessageCapitalizeTheWordI(newMessage, "i");
if (punctuate)
newMessage = SanitizeMessagePeriod(newMessage);

_sanitizer.TrySanitizeOutSmilies(newMessage, source, out newMessage, out emoteStr);

return newMessage;
}

Expand Down

0 comments on commit e2b3a8d

Please sign in to comment.