From 387da4b6234843a045ec1f075a87e6dd02c38b9d Mon Sep 17 00:00:00 2001 From: BotoX Date: Wed, 10 Aug 2016 01:12:59 +0200 Subject: [PATCH] custom-chatcolors: Do not load tags if client doesn't have access --- custom-chatcolors/scripting/custom-chatcolors.sp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom-chatcolors/scripting/custom-chatcolors.sp b/custom-chatcolors/scripting/custom-chatcolors.sp index 28e4069..f2b5797 100644 --- a/custom-chatcolors/scripting/custom-chatcolors.sp +++ b/custom-chatcolors/scripting/custom-chatcolors.sp @@ -2428,9 +2428,10 @@ public void OnClientDisconnect(int client) public void OnClientPostAdminCheck(int client) { if (!ConfigForward(client)) - { return; - } + + if (!CheckCommandAccess(client, "sm_tag", ADMFLAG_CUSTOM1)) + return; char auth[32]; GetClientAuthId(client, AuthId_Steam2, auth, sizeof(auth));