* Fixes inactivity/afk semantics and config

* Fixes people in the lobby not getting afk kicked

* Bluh

* Fax

* Doy

* Yes
This commit is contained in:
Cyberboss
2017-04-15 13:11:03 -06:00
committed by duncathan salt
parent 94a52f1fc0
commit 944fd9463c
6 changed files with 24 additions and 15 deletions
+2 -2
View File
@@ -530,10 +530,10 @@ GLOBAL_LIST(external_rsc_urls)
//checks if a client is afk
//3000 frames = 5 minutes
/client/proc/is_afk(duration=3000)
/client/proc/is_afk(duration = config.inactivity_period)
if(inactivity > duration)
return inactivity
return 0
return FALSE
// Byond seemingly calls stat, each tick.
// Calling things each tick can get expensive real quick.