Increase announcement message limit (#257)
This commit is contained in:
@@ -63,7 +63,7 @@ namespace Content.Client.Communications.UI
|
|||||||
|
|
||||||
public void AnnounceButtonPressed(string message)
|
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
|
// No more than 2 newlines, other replaced to spaces
|
||||||
var newlines = 0;
|
var newlines = 0;
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ namespace Content.Server.Communications
|
|||||||
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
||||||
[Dependency] private readonly IAdminLogManager _adminLogger = 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 int MaxMessageNewlines = 2;
|
||||||
private const float UIUpdateInterval = 5.0f;
|
private const float UIUpdateInterval = 5.0f;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user