Skip to content

Commit

Permalink
Server/Statusbot: Fixed detection of highscore clients
Browse files Browse the repository at this point in the history
  • Loading branch information
hbeni committed May 5, 2024
1 parent 24ef19e commit 60f69cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/statuspage/fgcom-status.bot.lua
Expand Up @@ -185,7 +185,7 @@ local generateOutData = function()
-- fgcom.data.cleanupPluginData() (called from dbUpdateTimer) will clean up for us.
-- once that happened, we will not see the entry here anymore.
else
if userData.type == "client" then users_alive = users_alive + 1 end
if fgcom_clients[sid][iid].type == "client" then users_alive = users_alive + 1 end
end
userData.updated = fgcom_clients[sid][iid].lastUpdate
fgcom.dbg(" updated="..userData.updated.. " ("..last_updated_since.."s ago)")
Expand Down

0 comments on commit 60f69cd

Please sign in to comment.