There can no longer be -1 admins/mentors online. (#24814)

This commit is contained in:
Charlie Nolan
2024-03-26 09:45:57 +00:00
committed by GitHub
parent c74262fc25
commit b45ba0aff9
+4 -2
View File
@@ -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"