summaryrefslogtreecommitdiff
path: root/operserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'operserv.c')
-rw-r--r--operserv.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/operserv.c b/operserv.c
index e9d4d294e..07f76ca8b 100644
--- a/operserv.c
+++ b/operserv.c
@@ -854,6 +854,18 @@ int is_services_oper(User * u)
/*************************************************************************/
+/* Is the given nick a Services root nick? */
+
+int nick_is_services_root(NickCore * 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)