diff --git a/bot/updater.ts b/bot/updater.ts index dbf06ebe..d60130d7 100644 --- a/bot/updater.ts +++ b/bot/updater.ts @@ -294,7 +294,7 @@ async function updateLastSeen() { const opNames = new Set(ops.map(op => op.name)) for (const p of lastSeenPlayers.values()) { const newOnline = opNames.has(p.name) - if (!p.online && newOnline) p.timesVanished++ + if (p.online && !newOnline) p.timesVanished++ p.online = newOnline }