mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Fix setting looc chat to false in the toml file (#44419)
* the fix * remove white space * switcharoo
This commit is contained in:
parent
16312ac3ac
commit
3c6b18e65c
1 changed files with 5 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ internal sealed partial class ChatManager : IChatManager
|
|||
[Dependency] private ILogManager _logManager = default!;
|
||||
[Dependency] private ILocalizationManager _localizationManager = default!;
|
||||
|
||||
private ISawmill _sawmill = default!;
|
||||
private ISawmill? _sawmill = default!;
|
||||
|
||||
/// <summary>
|
||||
/// The maximum length a player-sent message can be sent
|
||||
|
|
@ -119,8 +119,11 @@ internal sealed partial class ChatManager : IChatManager
|
|||
{
|
||||
var wrappedMessage = Loc.GetString("chat-manager-server-wrap-message", ("message", FormattedMessage.EscapeText(message)));
|
||||
ChatMessageToAll(ChatChannel.Server, message, wrappedMessage, EntityUid.Invalid, hideChat: false, recordReplay: true, colorOverride: colorOverride);
|
||||
_sawmill.Info(message);
|
||||
|
||||
// _sawmill might have not been initialized when DispatchServerAnnouncement is called
|
||||
// during server setup when some cvars are changed
|
||||
_sawmill?.Info(message);
|
||||
|
||||
_adminLogger.Add(LogType.Chat, LogImpact.Low, $"Server announcement: {message}");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue