Fixed shavit_chat_customchat 0 not being respected.

This commit is contained in:
shavit 2018-03-15 06:03:48 +02:00
parent 90c12340ce
commit 045fbb03fe

View File

@ -341,7 +341,7 @@ public void OnClientPutInServer(int client)
public void OnClientPostAdminCheck(int client)
{
gB_AllowCustom[client] = (CheckCommandAccess(client, "shavit_chat", ADMFLAG_CHAT) || gI_CustomChat == 2);
gB_AllowCustom[client] = gI_CustomChat > 0 && (CheckCommandAccess(client, "shavit_chat", ADMFLAG_CHAT) || gI_CustomChat == 2);
if(gH_SQL != null)
{