mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
There can no longer be -1 admins/mentors online. (#24814)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user