custom-chatcolors: Fix group tags not working if client doesn't have access to set a custom tag.
This commit is contained in:
parent
7baa42c3f3
commit
a88bff57b5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user