diff --git a/code/game/gamemodes/gameticker.dm b/code/game/gamemodes/gameticker.dm index 63ac8ea565..7858a67136 100644 --- a/code/game/gamemodes/gameticker.dm +++ b/code/game/gamemodes/gameticker.dm @@ -124,6 +124,13 @@ var/global/datum/controller/gameticker/ticker start_events() //handles random events and space dust. + var/admins_number = 0 + for(var/client/C) + if(C.holder) + admins_number++ + if(admins_number == 0) + send2irc("Server", "Round just started with no admins online!") + spawn() supply_ticker() // Added to kick-off the supply shuttle regenerating points -- TLE //Start master_controller.process() diff --git a/code/modules/mob/logout.dm b/code/modules/mob/logout.dm index b58ae225fb..138487cdf6 100644 --- a/code/modules/mob/logout.dm +++ b/code/modules/mob/logout.dm @@ -1,8 +1,15 @@ /mob/Logout() log_access("Logout: [key_name(src)]") if (admins[src.ckey]) - message_admins("Admin logout: [key_name(src)]") + if (ticker && ticker.current_state == GAME_STATE_PLAYING) //Only report this stuff if we are currently playing. + var/admins_number = 0 + for(var/client/C) + if(C.holder) + 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. + send2irc("Server", "I have no admins online!") ..() return 1 \ No newline at end of file