summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-27 04:54:23 -0500
committerAdam <Adam@anope.org>2013-01-27 05:00:00 -0500
commit5ae100fea231a9fc316942b18be876773be3e679 (patch)
tree4b6e9466022cd5fff7865ad846b33282fff1bb1b /modules/commands
parent0052dd29a7b0f8286990a49af6e4947e4bc784cf (diff)
Add nickserv/alist priv, merge botserv/botlist and botserev/assign/private to botserv/administration
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/bs_assign.cpp2
-rw-r--r--modules/commands/bs_botlist.cpp2
-rw-r--r--modules/commands/ns_alist.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/bs_assign.cpp b/modules/commands/bs_assign.cpp
index e778faffe..93cb5f907 100644
--- a/modules/commands/bs_assign.cpp
+++ b/modules/commands/bs_assign.cpp
@@ -54,7 +54,7 @@ class CommandBSAssign : public Command
return;
}
- if (bi->oper_only && !source.HasCommand("botserv/assign/private"))
+ if (bi->oper_only && !source.HasPriv("botserv/administration"))
{
source.Reply(ACCESS_DENIED);
return;
diff --git a/modules/commands/bs_botlist.cpp b/modules/commands/bs_botlist.cpp
index c4a559443..dcaa691d9 100644
--- a/modules/commands/bs_botlist.cpp
+++ b/modules/commands/bs_botlist.cpp
@@ -33,7 +33,7 @@ class CommandBSBotList : public Command
{
BotInfo *bi = it->second;
- if (source.HasCommand("botserv/botlist") || !bi->oper_only)
+ if (source.HasPriv("botserv/administration") || !bi->oper_only)
{
++count;
ListFormatter::ListEntry entry;
diff --git a/modules/commands/ns_alist.cpp b/modules/commands/ns_alist.cpp
index 6d3bebdc9..bd3a22281 100644
--- a/modules/commands/ns_alist.cpp
+++ b/modules/commands/ns_alist.cpp
@@ -27,7 +27,7 @@ class CommandNSAList : public Command
Anope::string nick = source.GetNick();
NickCore *nc = source.nc;
- if (params.size() && source.IsServicesOper())
+ if (params.size() && source.HasPriv("nickserv/alist"))
{
nick = params[0];
const NickAlias *na = NickAlias::Find(nick);