From 2eff5a4662b8de595b3ad5f7d17671cec0fec8de Mon Sep 17 00:00:00 2001 From: Dax Dupont Date: Thu, 14 Jun 2018 13:52:51 +0200 Subject: [PATCH] Forgot to remove this --- code/modules/admin/admin.dm | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index d491c496baa..987502d1b93 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -867,33 +867,3 @@ "Admin login: [key_name(src)]") if(string) message_admins("[string]") - -/datum/admins/proc/admin_headset_message(mob/M in GLOB.mob_list, sender = null) - var/mob/living/carbon/human/H = M - - if(!check_rights(R_ADMIN)) - return - - if(!istype(H)) - to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") - return - if(!istype(H.ears, /obj/item/radio/headset)) - to_chat(usr, "The person you are trying to contact is not wearing a headset.") - return - - if (!sender) - sender = input("Who is the message from?", "Sender") as null|anything in list("CentCom","Syndicate") - if(!sender) - return - - message_admins("[key_name_admin(src)] has started answering [key_name_admin(H)]'s [sender] request.") - var/input = input("Please enter a message to reply to [key_name(H)] via their headset.","Outgoing message from [sender]", "") as text|null - if(!input) - message_admins("[key_name_admin(src)] decided not to answer [key_name_admin(H)]'s [sender] request.") - return - - log_admin("[key_name(src)] replied to [key_name(H)]'s [sender] message with the message [input].") - message_admins("[key_name_admin(src)] replied to [key_name_admin(H)]'s [sender] message with: \"[input]\"") - to_chat(H, "You hear something crackle in your ears for a moment before a voice speaks. \"Please stand by for a message from [sender == "Syndicate" ? "your benefactor" : "Central Command"]. Message as follows[sender == "Syndicate" ? ", agent." : ":"] [input].. Message ends.\"") - - SSblackbox.record_feedback("tally", "admin_verb", 1, "Headset Message") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! \ No newline at end of file