Permalink
Browse files

Check blacklist after whitelist check

  • Loading branch information...
Bara committed Jun 22, 2018
1 parent bc444af commit e8d9c310e381be47719577ba7fd56e0f21fc254f
Showing with 8 additions and 4 deletions.
  1. +8 −4 addons/sourcemod/scripting/ttt/ttt_grabbermod.sp
@@ -612,17 +612,21 @@ bool CheckLists(int client, int entity, const char[] name)
return false;
}
if (g_cShowNames.BoolValue) PrintToChat(client, "CheckLists 1 - CheckBlacklist: %d - CheckBlacklistModels: %d - CheckWhitelist: %d", CheckBlacklist(client, name), CheckBlacklistModels(entity), CheckWhitelist(name));
if (CheckBlacklist(client, name) || CheckBlacklistModels(entity))
if (g_cShowNames.BoolValue)
{
return true;
PrintToChat(client, "CheckLists 1 - CheckBlacklist: %d - CheckBlacklistModels: %d - CheckWhitelist: %d", CheckBlacklist(client, name), CheckBlacklistModels(entity), CheckWhitelist(name));
}
if (CheckWhitelist(name))
{
return false;
}
// We'll check blacklists first...
if (CheckBlacklist(client, name) || CheckBlacklistModels(entity))
{
return true;
}
return false;
}

0 comments on commit e8d9c31

Please sign in to comment.