makes it account for key_valid
This commit is contained in:
@@ -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 = .
|
||||||
|
|||||||
Reference in New Issue
Block a user