]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Using capital letter for radio channel prefixes works now (#20846)
authorgus <august.eymann@gmail.com>
Mon, 9 Oct 2023 05:07:54 +0000 (01:07 -0400)
committerGitHub <noreply@github.com>
Mon, 9 Oct 2023 05:07:54 +0000 (22:07 -0700)
Co-authored-by: gus <august.eymann@gmail.ccom>
Content.Client/UserInterface/Systems/Chat/ChatUIController.cs
Content.Shared/Chat/SharedChatSystem.cs

index 988139929678855d0848081050cfe95fea2ccd0e..78193b5aec68107b98f9a28331515681348525fa 100644 (file)
@@ -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);
index 24cf1c4649691bbefae155abe02c9a38c422e0cb..f749214f1b801b89716afe8408d3d647fda4cc81 100644 (file)
@@ -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)