From a88bff57b5ffe10280080ceb9304d60f2af95e44 Mon Sep 17 00:00:00 2001 From: BotoX Date: Sat, 13 Aug 2016 18:13:33 +0200 Subject: [PATCH] custom-chatcolors: Fix group tags not working if client doesn't have access to set a custom tag. --- custom-chatcolors/scripting/custom-chatcolors.sp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/custom-chatcolors/scripting/custom-chatcolors.sp b/custom-chatcolors/scripting/custom-chatcolors.sp index f2b57974..3821ce10 100644 --- a/custom-chatcolors/scripting/custom-chatcolors.sp +++ b/custom-chatcolors/scripting/custom-chatcolors.sp @@ -2430,14 +2430,11 @@ 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)); KvRewind(g_hConfigFile); - if (!KvJumpToKey(g_hConfigFile, auth)) + if (!CheckCommandAccess(client, "sm_tag", ADMFLAG_CUSTOM1) || !KvJumpToKey(g_hConfigFile, auth)) { KvRewind(g_hConfigFile); KvGotoFirstSubKey(g_hConfigFile);