Increase announcement message limit (#257)

This commit is contained in:
Aviu00
2023-08-03 13:52:28 +03:00
committed by Aviu00
parent ed8da45aef
commit ac7fda8493
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;