diff options
author | Adam <Adam@anope.org> | 2011-03-14 13:52:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-03-14 13:52:26 -0400 |
commit | ed73d7675152ccc66f20daedca8586a8de254a84 (patch) | |
tree | 18f7a1a53a717f24d061550c6670ca6f0ed54f9f /include/opertype.h | |
parent | 4fe49af8401b956249d924b89b3e69bce5fb6744 (diff) |
Rewrote some of the opertype system, added os_login
Diffstat (limited to 'include/opertype.h')
-rw-r--r-- | include/opertype.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/opertype.h b/include/opertype.h index 6f48b7831..bf76d71eb 100644 --- a/include/opertype.h +++ b/include/opertype.h @@ -10,6 +10,25 @@ #include "hashcomp.h" +class OperType; + +struct Oper +{ + Anope::string name; + Anope::string password; + Anope::string certfp; + OperType *ot; + + Oper(const Anope::string &n, const Anope::string &p, const Anope::string &c, OperType *o) : + name(n), password(p), certfp(c), ot(o) { } + + /** Find an oper block by name + * @param name The name + * @return the oper block + */ + static Oper *Find(const Anope::string &name); +}; + class CoreExport OperType { private: @@ -36,6 +55,12 @@ class CoreExport OperType */ std::set<OperType *> inheritances; public: + /** Find an oper type by name + * @param name The name + * @return The oper type + */ + static OperType *Find(const Anope::string &name); + /** Create a new opertype of the given name. * @param nname The opertype name, e.g. "sra". */ |