Merge pull request #8073 from Citadel-Station-13/kevinz000-patch-27

bunker bypass now sanitizes ckeys automatically to avoid errors
This commit is contained in:
deathride58
2019-03-08 20:51:15 -05:00
committed by GitHub

View File

@@ -22,7 +22,7 @@
to_chat(usr, "<span class='adminnotice'>The Database is not enabled!</span>")
return
GLOB.bunker_passthrough |= ckeytobypass
GLOB.bunker_passthrough |= ckey(ckeytobypass)
log_admin("[key_name(usr)] has added [ckeytobypass] to the current round's bunker bypass list.")
message_admins("[key_name(usr)] has added [ckeytobypass] to the current round's bunker bypass list.")
@@ -34,7 +34,7 @@
to_chat(usr, "<span class='adminnotice'>The Database is not enabled!</span>")
return
GLOB.bunker_passthrough -= ckeytobypass
GLOB.bunker_passthrough -= ckey(ckeytobypass)
log_admin("[key_name(usr)] has removed [ckeytobypass] from the current round's bunker bypass list.")
message_admins("[key_name(usr)] has removed [ckeytobypass] from the current round's bunker bypass list.")