From df6011122f2b51f5f0438a673bc11d139835601b Mon Sep 17 00:00:00 2001 From: gus Date: Mon, 9 Oct 2023 01:07:54 -0400 Subject: [PATCH] Using capital letter for radio channel prefixes works now (#20846) Co-authored-by: gus --- Content.Client/UserInterface/Systems/Chat/ChatUIController.cs | 2 +- Content.Shared/Chat/SharedChatSystem.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs b/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs index 314b1e39e7..2b1e12e5cf 100644 --- a/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs +++ b/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs @@ -717,7 +717,7 @@ public sealed class ChatUIController : UIController public void UpdateSelectedChannel(ChatBox box) { - var (prefixChannel, _, radioChannel) = SplitInputContents(box.ChatInput.Input.Text); + var (prefixChannel, _, radioChannel) = SplitInputContents(box.ChatInput.Input.Text.ToLower()); if (prefixChannel == ChatSelectChannel.None) box.ChatInput.ChannelSelector.UpdateChannelSelectButton(box.SelectedChannel, null); diff --git a/Content.Shared/Chat/SharedChatSystem.cs b/Content.Shared/Chat/SharedChatSystem.cs index 146bd0a9dd..454457fffd 100644 --- a/Content.Shared/Chat/SharedChatSystem.cs +++ b/Content.Shared/Chat/SharedChatSystem.cs @@ -134,6 +134,7 @@ public abstract class SharedChatSystem : EntitySystem } var channelKey = input[1]; + channelKey = char.ToLower(channelKey); output = SanitizeMessageCapital(input[2..].TrimStart()); if (channelKey == DefaultChannelKey)