mirror of
https://github.com/anope/anope.git
synced 2026-07-04 01:03:12 +02:00
Add nickserv/alist priv, merge botserv/botlist and botserev/assign/private to botserv/administration
This commit is contained in:
+4
-3
@@ -736,7 +736,7 @@ log
|
||||
* must be included in the opertype block before the command can be used.
|
||||
*
|
||||
* Available privileges:
|
||||
* botserv/administration - Can perform certain BotServ administrative tasks
|
||||
* botserv/administration - Can view and assign private BotServ bots
|
||||
* chanserv/access/modify - Can modify channel access and akick lists
|
||||
* chanserv/auspex - Can see any information with /chanserv info
|
||||
* chanserv/no-register-limit - May register an unlimited number of channels and nicknames
|
||||
@@ -745,13 +745,14 @@ log
|
||||
* memoserv/set-limit - Can set the limit of max stored memos on any user and channel
|
||||
* memoserv/no-limit - Can send memos through limits and throttles
|
||||
* nickserv/access - Can modify other users access list
|
||||
* nickserv/alist - Can see the access list of other users
|
||||
* nickserv/auspex - Can see any information with /nickserv info
|
||||
* nickserv/confirm - Can confirm other users nicknames
|
||||
* nickserv/drop - Can drop other users nicks
|
||||
*
|
||||
* Available commands:
|
||||
* botserv/bot/del botserv/bot/add botserv/bot/change botserv/assign/private
|
||||
* botserv/botlist botserv/set/private botserv/set/nobot
|
||||
* botserv/bot/del botserv/bot/add botserv/bot/change botserv/set/private
|
||||
* botserv/set/nobot
|
||||
*
|
||||
* chanserv/access/list chanserv/drop chanserv/getkey chanserv/invite
|
||||
* chanserv/list chanserv/suspend chanserv/topic
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user