diff options
author | Adam <Adam@anope.org> | 2011-12-15 02:29:13 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-12-15 02:29:13 -0500 |
commit | c88a751eab55b5524395796734beb5bb15811d61 (patch) | |
tree | 7ff0f6d31c260c01374a373b897031736a085601 /include/access.h | |
parent | 9ea030d0600624095204af192e99c16e2d78a42e (diff) |
Add privilege ranks to determine how powerful privileges are
Diffstat (limited to 'include/access.h')
-rw-r--r-- | include/access.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/access.h b/include/access.h index b0567b73f..64e0971c9 100644 --- a/include/access.h +++ b/include/access.h @@ -11,16 +11,17 @@ struct CoreExport Privilege { Anope::string name; Anope::string desc; + int rank; - Privilege(const Anope::string &n, const Anope::string &d); - bool operator==(const Privilege &other); + Privilege(const Anope::string &n, const Anope::string &d, int r); + bool operator==(const Privilege &other) const; }; class CoreExport PrivilegeManager { static std::vector<Privilege> privs; public: - static void AddPrivilege(Privilege p, int pos = -1, int def = 0); + static void AddPrivilege(Privilege p); static void RemovePrivilege(Privilege &p); static Privilege *FindPrivilege(const Anope::string &name); static std::vector<Privilege> &GetPrivileges(); |