diff options
author | Adam <Adam@drink-coca-cola.info> | 2010-05-07 15:29:41 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-18 20:58:55 -0400 |
commit | ebfff71599fbedb72009d71cd40c264713b43b5a (patch) | |
tree | dd687cc4fd7e77866c91fc7f48646762dee3983d /include/opertype.h | |
parent | 9439cac6b126254bc488c2375b9e7ff5fd4fce74 (diff) |
Made opertypes inheritable
Diffstat (limited to 'include/opertype.h')
-rw-r--r-- | include/opertype.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/opertype.h b/include/opertype.h index b7fdc67cb..59c9eea6a 100644 --- a/include/opertype.h +++ b/include/opertype.h @@ -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); }; |