From 9eede28d8c6b5d1941abd43a4bf972bca0eac4ee 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 9881399296..78193b5aec 100644 --- a/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs +++ b/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs @@ -703,7 +703,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 24cf1c4649..f749214f1b 100644 --- a/Content.Shared/Chat/SharedChatSystem.cs +++ b/Content.Shared/Chat/SharedChatSystem.cs @@ -133,6 +133,7 @@ public abstract class SharedChatSystem : EntitySystem } var channelKey = input[1]; + channelKey = char.ToLower(channelKey); output = SanitizeMessageCapital(input[2..].TrimStart()); if (channelKey == DefaultChannelKey)