mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 20:20:33 +01:00
Afk fixup (#26181)
* Fixes inactivity/afk semantics and config * Fixes people in the lobby not getting afk kicked * Bluh * Fax * Doy * Yes
This commit is contained in:
committed by
duncathan salt
parent
94a52f1fc0
commit
944fd9463c
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user