From d1d7fb932c63dc61bdacc5713933418b66c3bc41 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Mon, 5 Oct 2015 20:56:15 -0700 Subject: [PATCH] Adds logging and admin announce to admin ghosting. --- code/modules/admin/admin_verbs.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index afdd5a3c11e..cd5c00bc0b2 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -314,6 +314,9 @@ var/list/admin_verbs_hideable = list( if(istype(mob,/mob/dead/observer)) //re-enter var/mob/dead/observer/ghost = mob + if (!ghost.can_reenter_corpse) + log_admin("[key_name(usr)] re-entered corpse") + message_admins("[key_name_admin(usr)] re-entered corpse") ghost.can_reenter_corpse = 1 //just in-case. ghost.reenter_corpse() feedback_add_details("admin_verb","P") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -321,6 +324,8 @@ var/list/admin_verbs_hideable = list( src << "Error: Aghost: Can't admin-ghost whilst in the lobby. Join or Observe first." else //ghostize + log_admin("[key_name(usr)] admin ghosted") + message_admins("[key_name_admin(usr)] admin ghosted") var/mob/body = mob body.ghostize(1) if(body && !body.key) @@ -636,4 +641,4 @@ var/list/admin_verbs_hideable = list( mob = new/mob/living/carbon/human/interactive(tile) testing("Spawned test mob with name \"[mob.name]\" at [tile.x],[tile.y],[tile.z]") - while (!area && --j > 0) \ No newline at end of file + while (!area && --j > 0)