mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
[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:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user