diff options
Diffstat (limited to 'src/opertype.cpp')
-rw-r--r-- | src/opertype.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/opertype.cpp b/src/opertype.cpp index 91676bd84..c9c1b762c 100644 --- a/src/opertype.cpp +++ b/src/opertype.cpp @@ -93,6 +93,22 @@ void Oper::SetRequireOper(const bool &b) Set(&OperBlockType::require_oper, b); } +bool Oper::HasCommand(const Anope::string &cmdstr) +{ + OperType *type = GetType(); + if (type != nullptr) + return type->HasCommand(cmdstr); + return false; +} + +bool Oper::HasPriv(const Anope::string &cmdstr) +{ + OperType *type = GetType(); + if (type != nullptr) + return type->HasPriv(cmdstr); + return false; +} + Oper *Oper::Find(const Anope::string &name) { for (Oper *o : Serialize::GetObjects<Oper *>()) |