fixed per-group command overrides not working

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401306
This commit is contained in:
David Anderson 2007-08-10 05:59:03 +00:00
parent 2ff8d1776e
commit a53d103507

View File

@ -356,13 +356,9 @@ bool ConCmdManager::CheckCommandAccess(int client, const char *cmd, FlagBits cmd
return true;
}
/* See if our other flags match */
if ((bits & cmdflags) == cmdflags)
{
return true;
}
/* Check for overrides */
/* Check for overrides
* :TODO: is it worth optimizing this?
*/
unsigned int groups = g_Admins.GetAdminGroupCount(adm);
GroupId gid;
OverrideRule rule;
@ -383,10 +379,16 @@ bool ConCmdManager::CheckCommandAccess(int client, const char *cmd, FlagBits cmd
{
return true;
} else if (rule == Command_Deny) {
break;
return false;
}
}
}
/* See if our other flags match */
if ((bits & cmdflags) == cmdflags)
{
return true;
}
}
return false;