Skip to content

Commit

Permalink
Merge pull request Citadel-Station-13#16116 from LetterN/patch-11
Browse files Browse the repository at this point in the history
[s] ensure key config is set for any secure request
  • Loading branch information
SandPoot authored Dec 4, 2024
2 parents c9bc261 + caec26c commit 31aee48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/world_topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
var/require_comms_key = FALSE

/datum/world_topic/proc/TryRun(list/input, addr)
key_valid = config && (CONFIG_GET(string/comms_key) == input["key"])
key_valid = (CONFIG_GET(string/comms_key) == input["key"]) && CONFIG_GET(string/comms_key) && input["key"]
if(require_comms_key && !key_valid)
return "Bad Key"
input -= "key"
Expand Down

0 comments on commit 31aee48

Please sign in to comment.