[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>
This commit is contained in:
SkyratBot
2021-12-02 22:24:07 +00:00
committed by GitHub
co-authored by Tom
parent 2c98fe404f
commit 9c555876ee
+3
View File
@@ -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.")