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"