makes it account for key_valid

This commit is contained in:
deathride58
2020-01-08 19:17:09 -05:00
parent 33df154689
commit 580119f038
+6 -4
View File
@@ -138,9 +138,10 @@
keyword = "status" keyword = "status"
/datum/world_topic/status/Run(list/input) /datum/world_topic/status/Run(list/input)
if(GLOB.topic_status_lastcache <= world.time + 5) if(!key_valid) //If we have a key, then it's safe to trust that this isn't a malicious packet. Also prevents the extra info from leaking
return GLOB.topic_status_cache if(GLOB.topic_status_lastcache <= world.time + 5)
GLOB.topic_status_lastcache = world.time return GLOB.topic_status_cache
GLOB.topic_status_lastcache = world.time
. = list() . = list()
.["version"] = GLOB.game_version .["version"] = GLOB.game_version
.["mode"] = "hidden" //CIT CHANGE - hides the gamemode in topic() calls to prevent meta'ing the gamemode .["mode"] = "hidden" //CIT CHANGE - hides the gamemode in topic() calls to prevent meta'ing the gamemode
@@ -184,4 +185,5 @@
.["shuttle_timer"] = SSshuttle.emergency.timeLeft() .["shuttle_timer"] = SSshuttle.emergency.timeLeft()
// Shuttle timer, in seconds // Shuttle timer, in seconds
GLOB.topic_status_cache = . if(!key_valid)
GLOB.topic_status_cache = .