private void OnCopyButtonPressed(EntityUid uid, FaxMachineComponent component, FaxCopyMessage args)
{
- Copy(uid, component);
+ Copy(uid, component, args);
}
private void OnSendButtonPressed(EntityUid uid, FaxMachineComponent component, FaxSendMessage args)
component.SendTimeoutRemaining += component.SendTimeout;
UpdateUserInterface(uid, component);
+
+ if (args.Session.AttachedEntity != null)
+ _adminLogger.Add(LogType.Action, LogImpact.Low,
+ $"{ToPrettyString(args.Session.AttachedEntity.Value):actor} added print job to {ToPrettyString(uid):tool} with text: {args.Content}");
+ else
+ _adminLogger.Add(LogType.Action, LogImpact.Low,
+ $"Someone added print job to {ToPrettyString(uid):tool} with text: {args.Content}");
}
/// <summary>
/// Copies the paper in the fax. A timeout is set after copying,
/// which is shared by the send button.
/// </summary>
- public void Copy(EntityUid uid, FaxMachineComponent? component = null)
+ public void Copy(EntityUid uid, FaxMachineComponent? component, FaxCopyMessage args)
{
if (!Resolve(uid, ref component))
return;
// will start immediately.
UpdateUserInterface(uid, component);
+
+ if (args.Session.AttachedEntity != null)
+ _adminLogger.Add(LogType.Action, LogImpact.Low,
+ $"{ToPrettyString(args.Session.AttachedEntity.Value):actor} added copy job to {ToPrettyString(uid):tool} with text: {ToPrettyString(component.PaperSlot.Item):subject}");
}
/// <summary>