1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 02:16:37 +02:00

Rewrote some of the opertype system, added os_login

This commit is contained in:
Adam
2011-03-14 13:52:26 -04:00
parent 4fe49af840
commit ed73d76751
65 changed files with 393 additions and 201 deletions
+2 -23
View File
@@ -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)