From 5d80c7a24804bb86fe2211f767d70d8a24659b7d Mon Sep 17 00:00:00 2001 From: Markolie Date: Wed, 16 Sep 2015 18:35:42 +0200 Subject: [PATCH] Add rights check to debug logging --- code/__HELPERS/logging.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__HELPERS/logging.dm b/code/__HELPERS/logging.dm index 543574c947d..5e0a79887da 100644 --- a/code/__HELPERS/logging.dm +++ b/code/__HELPERS/logging.dm @@ -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]"