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 /src/nickcore.cpp | |
parent | 4fe49af8401b956249d924b89b3e69bce5fb6744 (diff) |
Rewrote some of the opertype system, added os_login
Diffstat (limited to 'src/nickcore.cpp')
-rw-r--r-- | src/nickcore.cpp | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/src/nickcore.cpp b/src/nickcore.cpp index e83d46c47..5fdf9c2dd 100644 --- a/src/nickcore.cpp +++ b/src/nickcore.cpp @@ -9,7 +9,7 @@ NickCore::NickCore(const Anope::string &coredisplay) : Flags<NickCoreFlag, NI_EN if (coredisplay.empty()) throw CoreException("Empty display passed to NickCore constructor"); - this->ot = NULL; + this->o = NULL; this->channelcount = 0; this->lastmail = 0; this->memos.memomax = Config->MSMaxMemos; @@ -65,30 +65,9 @@ NickCore::~NickCore() } } -bool NickCore::HasCommand(const Anope::string &cmdstr) const -{ - if (!this->ot) - // No opertype. - return false; - - return this->ot->HasCommand(cmdstr); -} - bool NickCore::IsServicesOper() const { - if (this->ot) - return true; - - return false; -} - -bool NickCore::HasPriv(const Anope::string &privstr) const -{ - if (!this->ot) - // No opertype. - return false; - - return this->ot->HasPriv(privstr); + return this->o != NULL; } void NickCore::AddAccess(const Anope::string &entry) |