mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 16:44:33 +01:00
- 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:
@@ -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!")
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user