- 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
This commit is contained in:
baloh.matevz
2012-07-12 00:20:51 +00:00
parent 661efd46d2
commit da5d83fe59
+1 -1
View File
@@ -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!")
..()