Add admin logging to Wireless entertainment cameras (#39239)
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
|
using Content.Server.Administration.Logs;
|
||||||
using Content.Server.DeviceNetwork.Systems;
|
using Content.Server.DeviceNetwork.Systems;
|
||||||
using Content.Server.Emp;
|
using Content.Server.Emp;
|
||||||
using Content.Shared.ActionBlocker;
|
using Content.Shared.ActionBlocker;
|
||||||
|
using Content.Shared.Database;
|
||||||
using Content.Shared.DeviceNetwork;
|
using Content.Shared.DeviceNetwork;
|
||||||
using Content.Shared.DeviceNetwork.Events;
|
using Content.Shared.DeviceNetwork.Events;
|
||||||
using Content.Shared.Power;
|
using Content.Shared.Power;
|
||||||
@@ -21,6 +23,8 @@ public sealed class SurveillanceCameraSystem : EntitySystem
|
|||||||
[Dependency] private readonly DeviceNetworkSystem _deviceNetworkSystem = default!;
|
[Dependency] private readonly DeviceNetworkSystem _deviceNetworkSystem = default!;
|
||||||
[Dependency] private readonly UserInterfaceSystem _userInterface = default!;
|
[Dependency] private readonly UserInterfaceSystem _userInterface = default!;
|
||||||
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
||||||
|
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
|
||||||
|
|
||||||
|
|
||||||
// Pings a surveillance camera subnet. All cameras will always respond
|
// Pings a surveillance camera subnet. All cameras will always respond
|
||||||
// with a data message if they are on the same subnet.
|
// 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.CameraId = args.Name;
|
||||||
component.NameSet = true;
|
component.NameSet = true;
|
||||||
UpdateSetupInterface(uid, component);
|
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,
|
private void OnSetNetwork(EntityUid uid, SurveillanceCameraComponent component,
|
||||||
|
|||||||
Reference in New Issue
Block a user