Add voice changer logs (#14040)

* add set voice log

* add used identity to chat message logs

* please tell me there's a better way
This commit is contained in:
Chief-Engineer
2023-02-11 13:26:44 -06:00
committed by GitHub
parent 015ae236ad
commit 5c06c4c3ef
3 changed files with 44 additions and 6 deletions

View File

@@ -86,7 +86,10 @@ public sealed class RadioSystem : EntitySystem
RaiseLocalEvent(radio.Owner, ev);
}
_adminLogger.Add(LogType.Chat, LogImpact.Low, $"Radio message from {ToPrettyString(source):sender} on {channel.LocalizedName}: {message}");
if (name != Name(source))
_adminLogger.Add(LogType.Chat, LogImpact.Low, $"Radio message from {ToPrettyString(source):user} as {name} on {channel.LocalizedName}: {message}");
else
_adminLogger.Add(LogType.Chat, LogImpact.Low, $"Radio message from {ToPrettyString(source):user} on {channel.LocalizedName}: {message}");
_replay.QueueReplayMessage(chat);
_messages.Remove(message);