Skip to content

Commit

Permalink
Prompt Confirmation before Random Fact
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben10083 committed Aug 3, 2023
1 parent 8ec830b commit 5c45e5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,10 @@ var/list/roundstart_mod_verbs = list(
set desc = "Tells everyone about a random statistic in the round."
set category = "OOC"

var/prompt = tgui_alert(usr, "Are you sure you want to do this?", "Announce Random Fact", list("No", "Yes"))
if(prompt != "Yes")
return

message_admins("[key_name(usr)] announced a random fact.")
SSticker.mode?.declare_fun_facts()

Expand Down

0 comments on commit 5c45e5f

Please sign in to comment.