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 /src/operserv.c | |
| 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 'src/operserv.c')
| -rw-r--r-- | src/operserv.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/operserv.c b/src/operserv.c index 1ba950933..012a800da 100644 --- a/src/operserv.c +++ b/src/operserv.c @@ -388,48 +388,6 @@ int is_services_oper(User * u) } /*************************************************************************/ - -/* Is the given nick a Services root nick? */ - -int nick_is_services_root(NickCore * nc) -{ - if (nc) { - if (nc->flags & (NI_SERVICES_ROOT)) - return 1; - } - return 0; -} - -/*************************************************************************/ - -/* Is the given nick a Services admin/root nick? */ - -int nick_is_services_admin(NickCore * nc) -{ - if (nc) { - if (nc->flags & (NI_SERVICES_ADMIN | NI_SERVICES_ROOT)) - return 1; - } - return 0; -} - -/*************************************************************************/ - -/* Is the given nick a Services oper/admin/root nick? */ - -int nick_is_services_oper(NickCore * nc) -{ - if (nc) { - if (nc-> - flags & (NI_SERVICES_OPER | NI_SERVICES_ADMIN | - NI_SERVICES_ROOT)) - return 1; - } - return 0; -} - - -/*************************************************************************/ /*********************** OperServ command functions **********************/ /*************************************************************************/ |
