Gives categorization to the preferences as per the current staff structure.

This commit is contained in:
Datraen
2016-03-31 16:30:13 -04:00
parent 8582f20ee0
commit 41996815ae
3 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ var/global/floorIsLava = 0
var/rendered = "<span class=\"log_message\"><span class=\"prefix\">ATTACK:</span> <span class=\"message\">[text]</span></span>"
for(var/client/C in admins)
if((R_ADMIN|R_MOD) & C.holder.rights)
if(C.is_preference_enabled(/datum/client_preference/admin/show_attack_logs))
if(C.is_preference_enabled(/datum/client_preference/mod/show_attack_logs))
var/msg = rendered
C << msg