diff --git a/src/Tgstation.Server.Host/Components/Chat/ChatManager.cs b/src/Tgstation.Server.Host/Components/Chat/ChatManager.cs index b6685b7460..4b42fb0a56 100644 --- a/src/Tgstation.Server.Host/Components/Chat/ChatManager.cs +++ b/src/Tgstation.Server.Host/Components/Chat/ChatManager.cs @@ -351,11 +351,11 @@ namespace Tgstation.Server.Host.Components.Chat /// public void QueueWatchdogMessage(string message) - => QueueMessageGeneric(mapping => mapping.IsWatchdogChannel, message); + => QueueMessageGeneric(mapping => mapping.IsWatchdogChannel, message, "WD"); /// public void QueueDeploymentMessage(string message) - => QueueMessageGeneric(mapping => mapping.IsUpdatesChannel, message); + => QueueMessageGeneric(mapping => mapping.IsUpdatesChannel, message, null); /// public Func> QueueDeploymentMessage( @@ -1100,14 +1100,18 @@ namespace Tgstation.Server.Host.Components.Chat /// /// A for selecting the s to send to. /// The message to send. - void QueueMessageGeneric(Predicate channelSelector, string message) + /// The optional prefix to the message to be sent. + void QueueMessageGeneric(Predicate channelSelector, string message, string prefix) { ArgumentNullException.ThrowIfNull(message); - message = String.Format(CultureInfo.InvariantCulture, "WD: {0}", message); + if (prefix != null) + { + message = $"{prefix}: {message}"; + } if (!initialProviderConnectionsTask!.IsCompleted) - logger.LogTrace("Waiting for initial provider connections before sending watchdog message..."); + logger.LogTrace("Waiting for initial provider connections before sending chat message..."); // Reimplementing QueueMessage QueueMessageInternal(