From ac7fda8493b917d9044b9ae422608859577fdfd6 Mon Sep 17 00:00:00 2001 From: Aviu00 <93730715+Aviu00@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:52:28 +0300 Subject: [PATCH] Increase announcement message limit (#257) --- .../UI/CommunicationsConsoleBoundUserInterface.cs | 2 +- Content.Server/Communications/CommunicationsConsoleSystem.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs b/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs index dc7448aab1..ac194508a6 100644 --- a/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs +++ b/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs @@ -63,7 +63,7 @@ namespace Content.Client.Communications.UI public void AnnounceButtonPressed(string message) { - var msg = (message.Length <= 256 ? message.Trim() : $"{message.Trim().Substring(0, 256)}...").ToCharArray(); + var msg = (message.Length <= 1024 ? message.Trim() : $"{message.Trim().Substring(0, 1024)}...").ToCharArray(); // WD EDIT // No more than 2 newlines, other replaced to spaces var newlines = 0; diff --git a/Content.Server/Communications/CommunicationsConsoleSystem.cs b/Content.Server/Communications/CommunicationsConsoleSystem.cs index 6ac6935a66..9a645663e3 100644 --- a/Content.Server/Communications/CommunicationsConsoleSystem.cs +++ b/Content.Server/Communications/CommunicationsConsoleSystem.cs @@ -37,7 +37,7 @@ namespace Content.Server.Communications [Dependency] private readonly IConfigurationManager _cfg = default!; [Dependency] private readonly IAdminLogManager _adminLogger = default!; - private const int MaxMessageLength = 256; + private const int MaxMessageLength = 1024; // WD EDIT private const int MaxMessageNewlines = 2; private const float UIUpdateInterval = 5.0f;