diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-29 00:44:26 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-29 00:44:26 +0000 |
commit | 5b62682223d7ba433df468ff39253b02cd580f34 (patch) | |
tree | faea3ff0d69911fb5a692db66795299e55646bb9 /src | |
parent | 0b64cbc1d28bd20316ff7bfdb908b9b1eec63641 (diff) |
Changed the "nickserv/confirm" opertype command to a permission, and added "nickserv/drop" permission used to drop other users nicks
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2595 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ns_drop.c | 4 | ||||
-rw-r--r-- | src/core/ns_register.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/ns_drop.c b/src/core/ns_drop.c index db652b397..af51a9bb7 100644 --- a/src/core/ns_drop.c +++ b/src/core/ns_drop.c @@ -60,7 +60,7 @@ class CommandNSDrop : public Command if (is_mine && !nick) my_nick = sstrdup(na->nick); - if (!is_mine && !u->nc->IsServicesOper()) + if (!is_mine && !u->nc->HasPriv("nickserv/drop")) notice_lang(s_NickServ, u, ACCESS_DENIED); else if (NSSecureAdmins && !is_mine && na->nc->IsServicesOper()) notice_lang(s_NickServ, u, ACCESS_DENIED); @@ -98,7 +98,7 @@ class CommandNSDrop : public Command bool OnHelp(User *u, const ci::string &subcommand) { - if (u->nc && u->nc->IsServicesOper()) + if (u->nc && u->nc->HasPriv("nickserv/drop")) notice_help(s_NickServ, u, NICK_SERVADMIN_HELP_DROP); else notice_help(s_NickServ, u, NICK_HELP_DROP); diff --git a/src/core/ns_register.c b/src/core/ns_register.c index 65ccfa614..2e580e61c 100644 --- a/src/core/ns_register.c +++ b/src/core/ns_register.c @@ -116,7 +116,7 @@ class CommandNSConfirm : public Command if (!nr) { - if (u->nc && u->nc->HasCommand("nickserv/confirm")) + if (u->nc && u->nc->HasPriv("nickserv/confirm")) { /* If an admin, their nick is obviously already regged, so look at the passcode to get the nick of the user they are trying to validate, and push that user through regardless of passcode */ @@ -162,7 +162,7 @@ class CommandNSConfirm : public Command bool OnHelp(User *u, const ci::string &subcommand) { notice_help(s_NickServ, u, NICK_HELP_CONFIRM); - if (u->nc && u->nc->HasCommand("nickserv/confirm")) + if (u->nc && u->nc->HasPriv("nickserv/confirm")) notice_help(s_NickServ, u, NICK_HELP_CONFIRM_OPER); return true; } |