From 580119f038b08ec1df4e8ba918eae3d2bae87139 Mon Sep 17 00:00:00 2001 From: deathride58 Date: Wed, 8 Jan 2020 19:17:09 -0500 Subject: [PATCH] makes it account for key_valid --- code/datums/world_topic.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/datums/world_topic.dm b/code/datums/world_topic.dm index 20520052be..612c86bc11 100644 --- a/code/datums/world_topic.dm +++ b/code/datums/world_topic.dm @@ -138,9 +138,10 @@ keyword = "status" /datum/world_topic/status/Run(list/input) - if(GLOB.topic_status_lastcache <= world.time + 5) - return GLOB.topic_status_cache - GLOB.topic_status_lastcache = world.time + 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 + if(GLOB.topic_status_lastcache <= world.time + 5) + return GLOB.topic_status_cache + GLOB.topic_status_lastcache = world.time . = list() .["version"] = GLOB.game_version .["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, in seconds - GLOB.topic_status_cache = . + if(!key_valid) + GLOB.topic_status_cache = .