Skip to content

Commit

Permalink
Add inactivity protection for mods (#4938)
Browse files Browse the repository at this point in the history
# About the pull request

As said in CL

:cl:
admin: Moderators are now immune to inactivity kick, much like Admins.
/:cl:
  • Loading branch information
fira authored Nov 17, 2023
1 parent d7b9ee7 commit 1b3f85b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/controllers/subsystem/inactivity.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SUBSYSTEM_DEF(inactivity)
return

for(var/client/current as anything in GLOB.clients)
if(current.admin_holder && current.admin_holder.rights & R_ADMIN) //Skip admins.
if(current.admin_holder && current.admin_holder.rights & R_MOD) //Skip admins.
continue
if(current.is_afk(INACTIVITY_KICK))
if(!istype(current.mob, /mob/dead))
Expand Down

0 comments on commit 1b3f85b

Please sign in to comment.