| 1661 | } |
| 1662 | |
| 1663 | bool AdminCache::CanAdminUseCommand(int client, const char *cmd) |
| 1664 | { |
| 1665 | FlagBits bits; |
| 1666 | OverrideType otype = Override_Command; |
| 1667 | |
| 1668 | if (cmd[0] == '@') |
| 1669 | { |
| 1670 | otype = Override_CommandGroup; |
| 1671 | cmd++; |
| 1672 | } |
| 1673 | |
| 1674 | if (!bridge->LookForCommandAdminFlags(cmd, &bits)) |
| 1675 | { |
| 1676 | if (!GetCommandOverride(cmd, otype, &bits)) |
| 1677 | { |
| 1678 | bits = 0; |
| 1679 | } |
| 1680 | } |
| 1681 | |
| 1682 | return CheckClientCommandAccess(client, cmd, bits); |
| 1683 | } |
| 1684 | |
| 1685 | unsigned int AdminCache::SetGroupImmunityLevel(GroupId gid, unsigned int level) |
| 1686 | { |
nothing calls this directly
no test coverage detected