From 146ecc2fbba8c2a72af78d336ad58aebda656773 Mon Sep 17 00:00:00 2001 From: rburchell Date: Sat, 4 Apr 2009 00:52:25 +0000 Subject: Remove is_services_* methods.. this forces us to actually remove uses of them. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2257 5417fbe8-f217-4b02-8779-1006273d7864 --- src/operserv.c | 45 --------------------------------------------- 1 file changed, 45 deletions(-) (limited to 'src') diff --git a/src/operserv.c b/src/operserv.c index 012a800da..b2b05f1ef 100644 --- a/src/operserv.c +++ b/src/operserv.c @@ -342,51 +342,6 @@ void os_remove_nick(NickCore * nc) slist_remove(&servopers, nc); } -/*************************************************************************/ - -/* Does the given user have Services root privileges? - Now enhanced. */ - -int is_services_root(User * u) -{ - if ((NSStrictPrivileges && !is_oper(u)) - || (!nick_identified(u))) - return 0; - if ((u->nc->flags & NI_SERVICES_ROOT)) - return 1; - return 0; -} - -/*************************************************************************/ - -/* Does the given user have Services admin privileges? */ - -int is_services_admin(User * u) -{ - if ((NSStrictPrivileges && !is_oper(u)) - || (!nick_identified(u))) - return 0; - if ((u->nc->flags & (NI_SERVICES_ADMIN | NI_SERVICES_ROOT))) - return 1; - return 0; -} - -/*************************************************************************/ - -/* Does the given user have Services oper privileges? */ - -int is_services_oper(User * u) -{ - if ((NSStrictPrivileges && !is_oper(u)) - || (!nick_identified(u))) - return 0; - if ((u->nc-> - flags & (NI_SERVICES_OPER | NI_SERVICES_ADMIN | - NI_SERVICES_ROOT))) - return 1; - return 0; -} - /*************************************************************************/ /*********************** OperServ command functions **********************/ /*************************************************************************/ -- cgit