From da5d83fe59de389ac554dd76ac80364e6aa3d3ce Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Thu, 12 Jul 2012 00:20:51 +0000 Subject: [PATCH] - Apparently the number of logged in admins needs to be compared to 1 and not 0 when the admin is logging out, even tho they have not logged out when this is getting checked. Awell. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4047 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/mob/logout.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/logout.dm b/code/modules/mob/logout.dm index 138487cdf67..faf0f01fae3 100644 --- a/code/modules/mob/logout.dm +++ b/code/modules/mob/logout.dm @@ -8,7 +8,7 @@ admins_number++ message_admins("Admin logout: [key_name(src)]") - if(admins_number == 1) //Since this admin has not logged out yet, they are still counted, if the number of admins is 1 it means that after this one logs out, it will be 0. + if(admins_number == 0) //Apparently the admin logging out is no longer an admin at this point, so we have to check this towards 0 and not towards 1. Awell. send2irc("Server", "I have no admins online!") ..()