diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-01 19:56:40 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-01 19:56:40 +0000 |
| commit | 3cdca9e47a75f576e5ce5ba731cb65c5e68ac647 (patch) | |
| tree | 0879f2048a661ad8bfc4bd1293481f87833cf767 /include/account.h | |
| parent | e57feb4ef66eb167624b0f1df56d744771662452 (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 'include/account.h')
| -rw-r--r-- | include/account.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/account.h b/include/account.h index 43e82fb8e..f8fd71b3c 100644 --- a/include/account.h +++ b/include/account.h @@ -71,6 +71,11 @@ class CoreExport NickCore : public Extensible */ bool HasCommand(const std::string &cmdstr) const; + /** Checks whether this account is a services oper or not. + * @return True if this account is a services oper, false otherwise. + */ + bool IsServicesOper() const; + /** Check whether this opertype has access to the given special permission. * @param privstr The priv to check for, e.g. users/auspex. * @return True if this opertype has the specified priv, false otherwise. |
