summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-13 19:57:22 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-13 19:57:22 +0000
commit46c0d40009d35ae254f6fc314666c03f955f69fa (patch)
tree6183f7cb60cadbe1b1754dfdd62ef32b157868d0
parenta7ac6a0ac712892652da6dd8696b94d4c6d3ea84 (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
-rw-r--r--data/example.conf3
-rw-r--r--src/commands.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/data/example.conf b/data/example.conf
index 76f15720b..756d0c883 100644
--- a/data/example.conf
+++ b/data/example.conf
@@ -525,7 +525,6 @@ options
* chanserv/auspex - Can see any information with /chanserv info
* chanserv/no-register-limit - May register an unlimited number of channels and nicknames
* chanserv/set - Can modify the settings of any channel (incl. changing of the owner and password!)
- * hostserv/set - Can add/modify/delete any vhost
* memoserv/info - Can see any information with /memoserv info
* memoserv/set-limit - Can set the limit of max stored memos on any user and channel
* nickserv/confirm - Can confirm other users nicknames
@@ -544,6 +543,8 @@ options
* nickserv/getpass nickserv/sendpass nickserv/getemail nickserv/suspend
* nickserv/resetpass
*
+ * hostserv/set - Can add/modify/delete any vhost
+ *
* operserv/global operserv/news operserv/stats operserv/kick
* operserv/mode operserv/session operserv/modlist operserv/ignore
* operserv/chankill operserv/akill operserv/sqline operserv/sgline
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);