diff options
-rw-r--r-- | include/extern.h | 3 | ||||
-rw-r--r-- | src/operserv.c | 45 |
2 files changed, 0 insertions, 48 deletions
diff --git a/include/extern.h b/include/extern.h index 5dff37633..3a602fca1 100644 --- a/include/extern.h +++ b/include/extern.h @@ -751,9 +751,6 @@ E void load_os_dbase(); E void save_os_dbase(); E void os_remove_nick(NickCore *nc); -E int is_services_root(User *u); -E int is_services_admin(User *u); -E int is_services_oper(User *u); E int add_akill(User *u, const char *mask, const char *by, const time_t expires, const char *reason); E int check_akill(const char *nick, const char *username, const char *host, const char *vhost, const char *ip); diff --git a/src/operserv.c b/src/operserv.c index 012a800da..b2b05f1ef 100644 --- a/src/operserv.c +++ b/src/operserv.c @@ -343,51 +343,6 @@ void os_remove_nick(NickCore * 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 **********************/ /*************************************************************************/ |