diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-13 19:57:22 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-13 19:57:22 +0000 |
commit | 46c0d40009d35ae254f6fc314666c03f955f69fa (patch) | |
tree | 6183f7cb60cadbe1b1754dfdd62ef32b157868d0 /src/commands.c | |
parent | a7ac6a0ac712892652da6dd8696b94d4c6d3ea84 (diff) |
Moved hostserv/set priv to commands, only check for HasCommand() when trying to execute commands and not HasPriv(), as Privs should never be necessary to execute any command
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2697 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/commands.c')
-rw-r--r-- | src/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.c b/src/commands.c index ad6a154d6..0bbf23ba6 100644 --- a/src/commands.c +++ b/src/commands.c @@ -150,7 +150,7 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], const char * // If the command requires a permission, and they aren't registered or don't have the required perm, DENIED if (!c->permission.empty()) { - if (!u->nc->HasPriv(c->permission) && !u->nc->HasCommand(c->permission)) + if (!u->nc->HasCommand(c->permission)) { notice_lang(service, u, ACCESS_DENIED); alog("Access denied for user %s with service %s and command %s", u->nick, service, cmd); |