From 972bead6a9f780e1c402d854538277f2a6d2bbec Mon Sep 17 00:00:00 2001 From: harryob Date: Wed, 20 Sep 2023 17:20:03 +0100 Subject: [PATCH] changes the fallback code (#4446) need to check if this fixes the status on https://spacestation13.com/play/quick --- code/game/world.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/world.dm b/code/game/world.dm index cff799800a49..fce40ca468ae 100644 --- a/code/game/world.dm +++ b/code/game/world.dm @@ -185,8 +185,8 @@ var/world_topic_spam_protect_time = world.timeofday if(logging) log_topic("(NON-JSON) \"[topic_decoded]\", from:[addr], master:[master], key:[key]") // Fallback check for spacestation13.com requests - if(topic_decoded == "ping") - return length(GLOB.clients) + if(topic_decoded == "status") + return list2params(list("players" = length(GLOB.clients))) response["statuscode"] = 400 response["response"] = "Bad Request - Invalid JSON format" return json_encode(response)