From b45ba0aff9350628a7108402ca68838f94a66cb9 Mon Sep 17 00:00:00 2001 From: Charlie Nolan Date: Tue, 26 Mar 2024 02:45:57 -0700 Subject: [PATCH] There can no longer be -1 admins/mentors online. (#24814) --- code/modules/client/client_procs.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 113e3d1c4c8..d8031cc4f49 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -532,7 +532,8 @@ if(SSredis.connected) var/list/mentorcounter = staff_countup(R_MENTOR) var/mentor_count = mentorcounter[1] - mentor_count-- // Exclude ourself + if(!(holder.fakekey || is_afk())) + mentor_count-- // Exclude ourself var/msg = "**[ckey]** logged out. **[mentor_count]** mentor[mentor_count == 1 ? "" : "s"] online." var/list/data = list() data["author"] = "alice" @@ -544,7 +545,8 @@ if(SSredis.connected) var/list/admincounter = staff_countup(R_BAN) var/admin_count = admincounter[1] - admin_count-- // Exclude ourself + if(!(holder.fakekey || is_afk())) + admin_count-- // Exclude ourself var/msg = "**[ckey]** logged out. **[admin_count]** admin[admin_count == 1 ? "" : "s"] online." var/list/data = list() data["author"] = "alice"