From 9c555876eecd5c4747b30369a57bb7fab556863f Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 2 Dec 2021 23:24:07 +0100 Subject: [PATCH] [MIRROR] Adds a confirmation prompt for admins resetting the station name [MDB IGNORE] (#9836) * Adds a confirmation prompt for admins resetting the station name (#63197) * Adds a confirmation prompt for admins resetting the station name Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com> --- code/modules/admin/verbs/secrets.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/admin/verbs/secrets.dm b/code/modules/admin/verbs/secrets.dm index 4b84afefec7..e660c2a691a 100644 --- a/code/modules/admin/verbs/secrets.dm +++ b/code/modules/admin/verbs/secrets.dm @@ -170,6 +170,9 @@ GLOBAL_DATUM(everyone_a_traitor, /datum/everyone_is_a_traitor_controller) message_admins(span_adminnotice("[key_name_admin(holder)] renamed the station to: [new_name].")) priority_announce("[command_name()] has renamed the station to \"[new_name]\".") if("reset_name") + var/confirmed = tgui_alert(usr,"Are you sure you want to reset the station name?", "Confirm", list("Yes", "No", "Cancel")) + if(confirmed != "Yes") + return var/new_name = new_station_name() set_station_name(new_name) log_admin("[key_name(holder)] reset the station name.")