From 0e6b1bdc2f339bbaf6f2f3fcbcb48a102da7b05a Mon Sep 17 00:00:00 2001 From: izzyinbox Date: Sun, 7 Apr 2019 01:45:47 -0500 Subject: [PATCH] adds TGS command for adding ckeys to the panic bunker bypass --- code/modules/admin/chat_commands.dm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/code/modules/admin/chat_commands.dm b/code/modules/admin/chat_commands.dm index 9adfaada72..a97c0bf116 100644 --- a/code/modules/admin/chat_commands.dm +++ b/code/modules/admin/chat_commands.dm @@ -126,3 +126,18 @@ GLOBAL_LIST(round_end_notifiees) /datum/tgs_chat_command/reload_admins/proc/ReloadAsync() set waitfor = FALSE load_admins() + +/datum/tgs_chat_command/addbunkerbypass + name = "whitelist" + help_text = "whitelist " + admin_only = TRUE + +/datum/tgs_chat_command/addbunkerbypass/Run(datum/tgs_chat_user/sender, params) + if(!CONFIG_GET(flag/sql_enabled)) + return "The Database is not enabled!" + + GLOB.bunker_passthrough |= ckey(params) + + log_admin("[sender.friendly_name] has added [params] to the current round's bunker bypass list.") + message_admins("[sender.friendly_name] has added [params] to the current round's bunker bypass list.") + return "[params] has been added to the current round's bunker bypass list." \ No newline at end of file