summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);