From c88a751eab55b5524395796734beb5bb15811d61 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 15 Dec 2011 02:29:13 -0500 Subject: Add privilege ranks to determine how powerful privileges are --- include/access.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') 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 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 &GetPrivileges(); -- cgit