AFK Kicker should affect ghosts and people in the lobby

This commit is contained in:
Anewbe
2018-03-13 15:02:49 -05:00
parent 57ed0f6e9e
commit e2bade91c8

View File

@@ -7,10 +7,10 @@
for(last_object in clients) for(last_object in clients)
var/client/C = last_object var/client/C = last_object
if(C.is_afk(config.kick_inactive MINUTES)) if(C.is_afk(config.kick_inactive MINUTES))
if(!istype(C.mob, /mob/observer/dead) && !istype(C.mob, /mob/new_player))
to_chat(C,"<span class='warning'>You have been inactive for more than [config.kick_inactive] minute\s and have been disconnected.</span>") to_chat(C,"<span class='warning'>You have been inactive for more than [config.kick_inactive] minute\s and have been disconnected.</span>")
var/information var/information
if(C.mob)
if(ishuman(C.mob)) if(ishuman(C.mob))
var/job var/job
var/mob/living/carbon/human/H = C.mob var/mob/living/carbon/human/H = C.mob