1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 04:03:12 +02:00

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
This commit is contained in:
Adam-
2009-12-13 19:57:22 +00:00
parent a7ac6a0ac7
commit 46c0d40009
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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
+1 -1
View File
@@ -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);