summaryrefslogtreecommitdiff
path: root/src/access.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-09-04 21:04:37 -0400
committerAdam <Adam@anope.org>2011-09-10 02:06:31 -0400
commitdc5d1fa21c20000b77bf713585333c79121a8df0 (patch)
tree8661b0e4e8266c3fdf370d0bff0e5b7c900d9b24 /src/access.cpp
parent563d158e49754a7226b4bbcc8fa0c7f45a559cba (diff)
Made ChanServ privileges configurable
Diffstat (limited to 'src/access.cpp')
-rw-r--r--src/access.cpp43
1 files changed, 4 insertions, 39 deletions
diff --git a/src/access.cpp b/src/access.cpp
index 09310d441..8a293a42d 100644
--- a/src/access.cpp
+++ b/src/access.cpp
@@ -56,49 +56,14 @@ Privilege *PrivilegeManager::FindPrivilege(const Anope::string &name)
return NULL;
}
-void PrivilegeManager::Init()
+std::vector<Privilege> &PrivilegeManager::GetPrivileges()
{
- AddPrivilege(Privilege("ACCESS_LIST", _("Allowed to view the access list")));
- AddPrivilege(Privilege("NOKICK", _("Prevents users being kicked by Services")));
- AddPrivilege(Privilege("FANTASIA", _("Allowed to use fantasy commands")));
- AddPrivilege(Privilege("FOUNDER", _("Allowed to issue commands restricted to channel founders")));
- AddPrivilege(Privilege("GREET", _("Greet message displayed")));
- AddPrivilege(Privilege("AUTOVOICE", _("Automatic mode +v")));
- AddPrivilege(Privilege("VOICEME", _("Allowed to (de)voice him/herself")));
- AddPrivilege(Privilege("VOICE", _("Allowed to (de)voice users")));
- AddPrivilege(Privilege("INFO", _("Allowed to use INFO command with ALL option")));
- AddPrivilege(Privilege("SAY", _("Allowed to use SAY and ACT commands")));
- AddPrivilege(Privilege("AUTOHALFOP", _("Automatic mode +h")));
- AddPrivilege(Privilege("HALFOPME", _("Allowed to (de)halfop him/herself")));
- AddPrivilege(Privilege("HALFOP", _("Allowed to (de)halfop users")));
- AddPrivilege(Privilege("KICK", _("Allowed to use the KICK command")));
- AddPrivilege(Privilege("SIGNKICK", _("No signed kick when SIGNKICK LEVEL is used")));
- AddPrivilege(Privilege("BAN", _("Allowed to use ban users")));
- AddPrivilege(Privilege("TOPIC", _("Allowed to change channel topics")));
- AddPrivilege(Privilege("MODE", _("Allowed to change channel modes")));
- AddPrivilege(Privilege("GETKEY", _("Allowed to use GETKEY command")));
- AddPrivilege(Privilege("INVITE", _("Allowed to use the INVITE command")));
- AddPrivilege(Privilege("UNBAN", _("Allowed to unban users")));
- AddPrivilege(Privilege("AUTOOP", _("Automatic channel operator status")));
- AddPrivilege(Privilege("AUTOOWNER", _("Automatic mode +q")));
- AddPrivilege(Privilege("OPDEOPME", _("Allowed to (de)op him/herself")));
- AddPrivilege(Privilege("OPDEOP", _("Allowed to (de)op users")));
- AddPrivilege(Privilege("AUTOPROTECT", _("Automatic mode +a")));
- AddPrivilege(Privilege("AKICK", _("Allowed to use AKICK command")));
- AddPrivilege(Privilege("BADWORDS", _("Allowed to modify channel badwords list")));
- AddPrivilege(Privilege("ASSIGN", _("Allowed to assign/unassign a bot")));
- AddPrivilege(Privilege("MEMO", _("Allowed to read channel memos")));
- AddPrivilege(Privilege("ACCESS_CHANGE", _("Allowed to modify the access list")));
- AddPrivilege(Privilege("PROTECT", _("Allowed to (de)protect users")));
- AddPrivilege(Privilege("PROTECTME", _("Allowed to (de)protect him/herself")));
- AddPrivilege(Privilege("SET", _("Allowed to set channel settings")));
- AddPrivilege(Privilege("OWNERME", _("Allowed to (de)owner him/herself")));
- AddPrivilege(Privilege("OWNER", _("Allowed to (de)owner users")));
+ return privs;
}
-std::vector<Privilege> &PrivilegeManager::GetPrivileges()
+void PrivilegeManager::ClearPrivileges()
{
- return privs;
+ privs.clear();
}
AccessProvider::AccessProvider(Module *o, const Anope::string &n) : Service<AccessProvider>(o, n)