1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 16:43:13 +02:00

Made opertypes inheritable

This commit is contained in:
Adam
2010-05-07 15:29:41 -04:00
committed by Adam
parent 9439cac6b1
commit ebfff71599
6 changed files with 113 additions and 36 deletions
+9
View File
@@ -31,6 +31,10 @@ class CoreExport OperType
* as we don't invoke it often.
*/
std::list<std::string> commands;
/** Set of opertypes we inherit from
*/
std::set<OperType *> inheritances;
public:
/** Create a new opertype of the given name.
* @param nname The opertype name, e.g. "sra".
@@ -62,4 +66,9 @@ class CoreExport OperType
/** Returns the name of this opertype.
*/
const ci::string &GetName() const;
/** Make this opertype inherit commands and privs from another opertype
* @param ot The opertype to inherit from
*/
void Inherits(OperType *ot);
};