diff options
| author | Adam <Adam@anope.org> | 2010-06-19 11:54:08 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-06-19 11:54:08 -0400 |
| commit | 52058fe87b4b0475b1775198c725af14e540d355 (patch) | |
| tree | c3597d6411a006ffbb670d2ce761101b9640e9b6 /include/opertype.h | |
| parent | 43e951aed54f838ba55a4c1552214773aee2fb2f (diff) | |
| parent | df9d291bcba9788e51d11424ebaf6f05c26cc80f (diff) | |
Merge remote branch 'origin/1.9.3' into 1.9
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); }; |
