mirror of
https://github.com/anope/anope.git
synced 2026-07-08 19:43:13 +02:00
Add a chanserv/access/list privilege
Replace the existing chanserv/access/list command access, only used in cs_xop, by a privilege with the same name. It which allows read-only access to cs_access, cs_flags, cs_xop and cs_akick, while the already-existing chanserv/access/modify privilege allows to modify them.
This commit is contained in:
@@ -388,6 +388,8 @@ class CommandCSFlags : public Command
|
||||
bool has_access = false;
|
||||
if (source.HasPriv("chanserv/access/modify"))
|
||||
has_access = true;
|
||||
else if (is_list && source.HasPriv("chanserv/access/list"))
|
||||
has_access = true;
|
||||
else if (is_list && source.AccessFor(ci).HasPriv("ACCESS_LIST"))
|
||||
has_access = true;
|
||||
else if (source.AccessFor(ci).HasPriv("ACCESS_CHANGE"))
|
||||
|
||||
Reference in New Issue
Block a user