Removes the mess added with recalling with a message

This commit is contained in:
Lzimann
2017-05-20 02:32:01 -03:00
parent 9d420904c4
commit 49863620f2
5 changed files with 27 additions and 40 deletions
+1 -1
View File
@@ -285,7 +285,7 @@
if(!check_rights(R_ADMIN))
return
trigger_centcom_recall()
usr.client.trigger_centcom_recall()
else if(href_list["toggle_continuous"])
if(!check_rights(R_ADMIN))
+13
View File
@@ -1193,3 +1193,16 @@ GLOBAL_LIST_EMPTY(custom_outfits) //Admin created outfits
message_admins(msg)
admin_ticket_log(target, msg)
log_admin("[key_name(usr)] punished [key_name(target)] with [punishment].")
/client/proc/trigger_centcom_recall()
if(!holder)
return
var/message = pick(GLOB.admiral_messages)
message = input("Enter message from the on-call admiral to be put in the recall report.", "Admiral Message", message) as text|null
if(!message)
return
message_admins("[key_name_admin(usr)] triggered a Centcom recall, with the admiral message of: [message]")
log_game("[key_name(usr)] triggered a Centcom recall, with the message of: [message]")