1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 02:06:37 +02:00

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
This commit is contained in:
rburchell
2009-04-04 00:52:25 +00:00
parent 36f523249a
commit 146ecc2fbb
2 changed files with 0 additions and 48 deletions
-3
View File
@@ -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);
-45
View File
@@ -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 **********************/
/*************************************************************************/