summaryrefslogtreecommitdiff
path: root/src/nickcore.cpp
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-01 19:56:40 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-01 19:56:40 +0000
commit3cdca9e47a75f576e5ce5ba731cb65c5e68ac647 (patch)
tree0879f2048a661ad8bfc4bd1293481f87833cf767 /src/nickcore.cpp
parente57feb4ef66eb167624b0f1df56d744771662452 (diff)
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
Diffstat (limited to 'src/nickcore.cpp')
-rw-r--r--src/nickcore.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nickcore.cpp b/src/nickcore.cpp
index 6dadc9217..804d0c1c7 100644
--- a/src/nickcore.cpp
+++ b/src/nickcore.cpp
@@ -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)