]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add admin logging to Wireless entertainment cameras (#39239)
authorKowlin <10947836+Kowlin@users.noreply.github.com>
Sun, 27 Jul 2025 11:07:34 +0000 (13:07 +0200)
committerGitHub <noreply@github.com>
Sun, 27 Jul 2025 11:07:34 +0000 (13:07 +0200)
Content.Server/SurveillanceCamera/Systems/SurveillanceCameraSystem.cs

index 624f414d78267b96fe84fda09da331ae832acc10..2a288d90175dbba9912e6ab024191eb779188562 100644 (file)
@@ -1,6 +1,8 @@
+using Content.Server.Administration.Logs;
 using Content.Server.DeviceNetwork.Systems;
 using Content.Server.Emp;
 using Content.Shared.ActionBlocker;
+using Content.Shared.Database;
 using Content.Shared.DeviceNetwork;
 using Content.Shared.DeviceNetwork.Events;
 using Content.Shared.Power;
@@ -21,6 +23,8 @@ public sealed class SurveillanceCameraSystem : EntitySystem
     [Dependency] private readonly DeviceNetworkSystem _deviceNetworkSystem = default!;
     [Dependency] private readonly UserInterfaceSystem _userInterface = default!;
     [Dependency] private readonly SharedAppearanceSystem _appearance = default!;
+    [Dependency] private readonly IAdminLogManager _adminLogger = default!;
+
 
     // Pings a surveillance camera subnet. All cameras will always respond
     // with a data message if they are on the same subnet.
@@ -170,6 +174,7 @@ public sealed class SurveillanceCameraSystem : EntitySystem
         component.CameraId = args.Name;
         component.NameSet = true;
         UpdateSetupInterface(uid, component);
+        _adminLogger.Add(LogType.Chat, LogImpact.Low, $"{ToPrettyString(args.Actor)} set the name of {ToPrettyString(uid)} to \"{args.Name}.\"");
     }
 
     private void OnSetNetwork(EntityUid uid, SurveillanceCameraComponent component,