From 296ce4fb78b45fbc6f088591420d5967068b26b2 Mon Sep 17 00:00:00 2001 From: Putnam Date: Mon, 21 Oct 2019 05:18:44 -0700 Subject: [PATCH] suggested changes --- code/modules/admin/admin.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 004ab9e17e..0235431705 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -690,14 +690,15 @@ set category = "Server" set desc="Switches between secret/extended and dynamic voting" set name="Toggle Dynamic Vote" - CONFIG_SET(flag/dynamic_voting,!CONFIG_GET(flag/dynamic_voting)) - if (CONFIG_GET(flag/dynamic_voting)) + var/prev_dynamic_voting = CONFIG_GET(flag/dynamic_voting) + CONFIG_SET(flag/dynamic_voting,!prev_dynamic_voting) + if (!prev_dynamic_voting) to_chat(world, "Vote is now between extended and dynamic chaos.") else to_chat(world, "Vote is now between extended and secret.") - log_admin("[key_name(usr)] toggled dynamic voting.") + log_admin("[key_name(usr)] [prev_dynamic_voting ? "disabled" : "enabled"] dynamic voting.") message_admins("[key_name_admin(usr)] toggled dynamic voting.") - SSblackbox.record_feedback("nested tally", "admin_toggle", 1, list("Toggle Dynamic Voting", "[CONFIG_GET(flag/dynamic_voting) ? "Enabled" : "Disabled"]")) //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + SSblackbox.record_feedback("nested tally", "admin_toggle", 1, list("Toggle Dynamic Voting", "[prev_dynamic_voting ? "Disabled" : "Enabled"]")) //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /datum/admins/proc/unprison(mob/M in GLOB.mob_list) set category = "Admin"