mirror of
https://github.com/anope/anope.git
synced 2026-06-27 09:06:38 +02:00
Replace nick_is_* checking of static userlevels with NickCore::IsServicesOper, which just confirms they have *an* opertype.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2231 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -22,6 +22,14 @@ bool NickCore::HasCommand(const std::string &cmdstr) const
|
||||
return this->ot->HasCommand(cmdstr);
|
||||
}
|
||||
|
||||
bool NickCore::IsServicesOper() const
|
||||
{
|
||||
if (this->ot)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool NickCore::HasPriv(const std::string &privstr) const
|
||||
{
|
||||
if (!this->ot)
|
||||
|
||||
Reference in New Issue
Block a user