]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix SpeakOnTrigger not working for messages starting with '.' (#36053)
authorTayrtahn <tayrtahn@gmail.com>
Mon, 24 Mar 2025 18:19:29 +0000 (14:19 -0400)
committerGitHub <noreply@github.com>
Mon, 24 Mar 2025 18:19:29 +0000 (11:19 -0700)
Content.Server/Chat/Systems/SpeakOnTriggerSystem.cs

index d8800a85087fcb6cf47a9ee584216e60dfc323ef..28be6a537385ec8260d7a449e834f2f844442237 100644 (file)
@@ -34,6 +34,10 @@ public sealed class SpeakOnTriggerSystem : EntitySystem
             return;
 
         var message = Loc.GetString(_random.Pick(messagePack.Values));
+        // Chatcode moment: messages starting with "." are considered radio messages.
+        // Prepending ">" forces the message to be spoken instead.
+        // TODO chat refactor: remove this
+        message = '>' + message;
         _chat.TrySendInGameICMessage(ent.Owner, message, InGameICChatType.Speak, true);
 
         if (useDelay != null)