From b6501998e311036d2e9867fb7f118c7a2c243812 Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Wed, 6 May 2015 11:34:54 +0200 Subject: [PATCH] Ensures only antags and admins can see AntagOOC. Adds rights check, not only holder verification. --- code/modules/admin/verbs/antag-ooc.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/verbs/antag-ooc.dm b/code/modules/admin/verbs/antag-ooc.dm index 53a2c709fc..9260baf3dd 100644 --- a/code/modules/admin/verbs/antag-ooc.dm +++ b/code/modules/admin/verbs/antag-ooc.dm @@ -13,7 +13,7 @@ display_name = holder.fakekey for(var/mob/M in mob_list) - if((M.mind && M.mind.special_role && M.client) || (M.client && M.client.holder)) + if((M.mind && M.mind.special_role && M.client) || check_rights(R_ADMIN, 0, M)) M << "" + create_text_tag("aooc", "Antag-OOC:", M.client) + " [display_name]: [msg]" log_ooc("(ANTAG) [key] : [msg]") \ No newline at end of file