Add rights check to debug logging

This commit is contained in:
Markolie
2015-09-16 18:35:42 +02:00
parent 7b6dee1f6b
commit 5d80c7a248
+1 -1
View File
@@ -30,7 +30,7 @@
diary << "\[[time_stamp()]]DEBUG: [text]"
for(var/client/C in admins)
if(C.prefs.toggles & CHAT_DEBUGLOGS)
if(check_rights(R_DEBUG, 0, C.mob) && (C.prefs.toggles & CHAT_DEBUGLOGS))
C << "DEBUG: [text]"