mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Update inactivity.dm
This commit is contained in:
@@ -15,12 +15,7 @@ SUBSYSTEM_DEF(inactivity)
|
||||
while(client_list.len)
|
||||
var/client/C = client_list[client_list.len]
|
||||
client_list.len--
|
||||
<<<<<<< HEAD
|
||||
if(!C.holder && C.is_afk(config.kick_inactive MINUTES) && !isobserver(C.mob))
|
||||
|
||||
=======
|
||||
if(C.is_afk(config.kick_inactive MINUTES) && can_kick(C))
|
||||
>>>>>>> 253e371... Inactivity subsystem kicks ghosts and admins again (#6886)
|
||||
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
|
||||
@@ -63,9 +58,7 @@ SUBSYSTEM_DEF(inactivity)
|
||||
|
||||
/datum/controller/subsystem/inactivity/stat_entry()
|
||||
..("Kicked: [number_kicked]")
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
/datum/controller/subsystem/inactivity/proc/can_kick(var/client/C)
|
||||
if(C.holder) return FALSE //VOREStation Add - Don't kick admins.
|
||||
return TRUE
|
||||
>>>>>>> 253e371... Inactivity subsystem kicks ghosts and admins again (#6886)
|
||||
|
||||
Reference in New Issue
Block a user