mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
AFK Kicker should affect ghosts and people in the lobby
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user