mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Adds a confirmation prompt for admins resetting the station name (#63197)
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