From: gus Date: Mon, 9 Oct 2023 05:07:54 +0000 (-0400) Subject: Using capital letter for radio channel prefixes works now (#20846) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=9eede28d8c6b5d1941abd43a4bf972bca0eac4ee;p=space-station-14.git Using capital letter for radio channel prefixes works now (#20846) Co-authored-by: gus --- 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)