Goon process scheduler

This commit is contained in:
ZomgPonies
2015-02-22 15:24:46 -05:00
parent 1f5ef8d4dd
commit 2c50a42ba7
51 changed files with 2246 additions and 24 deletions
+16
View File
@@ -0,0 +1,16 @@
/datum/controller/process/inactivity/setup()
name = "inactivity"
schedule_interval = INACTIVITY_KICK
/datum/controller/process/inactivity/doWork()
if(config.kick_inactive)
for(var/client/C in clients)
if(C.is_afk(INACTIVITY_KICK))
if(!istype(C.mob, /mob/dead))
log_access("AFK: [key_name(C)]")
C << "<SPAN CLASS='warning'>You have been inactive for more than 10 minutes and have been disconnected.</SPAN>"
del(C)
scheck()
#undef INACTIVITY_KICK