System configuration

This commit is contained in:
AffectedArc07
2021-05-16 16:03:33 +01:00
parent 7a3d535132
commit 400a25dc01
8 changed files with 43 additions and 53 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
*/
/datum/world_topic_handler/proc/invoke(list/input)
SHOULD_NOT_OVERRIDE(TRUE)
var/authorised = (config.comms_password && input["key"] == config.comms_password) // No password means no comms, not any password
var/authorised = (GLOB.configuration.system.topic_key && input["key"] == GLOB.configuration.system.topic_key) // No password means no comms, not any password
if(requires_commskey && !authorised)
// Try keep all returns in JSON unless absolutely necessary (?ping for example)
return(json_encode(list("error" = "Invalid Key")))