summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-06-18 21:26:26 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-06-18 21:26:26 +0000
commit02db7e64381d96b01c97498ecdbbc21544fbfab3 (patch)
treea41f965740776906d6533c297c1801cc48488ebd /src
parentc82494e3a8fa5001552a6137896b0890d128079a (diff)
BUILD : 1.7.14 (1059) BUGS : 525 NOTES : In cs_xop, copied the check from ADD to DEL, so you still need AOP to remove people from any XOP list (HOP could delete VOP)
git-svn-id: svn://svn.anope.org/anope/trunk@1059 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@783 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/core/cs_xop.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/cs_xop.c b/src/core/cs_xop.c
index fc5658cfa..09eca4ce4 100644
--- a/src/core/cs_xop.c
+++ b/src/core/cs_xop.c
@@ -356,6 +356,11 @@ int do_xop(User * u, char *xname, int xlev, int *xmsgs)
ulev = get_access(u, ci);
+ if ((xlev >= ulev || ulev < ACCESS_AOP) && !is_servadmin) {
+ notice_lang(s_ChanServ, u, PERMISSION_DENIED);
+ return MOD_CONT;
+ }
+
/* Special case: is it a number/list? Only do search if it isn't. */
if (isdigit(*nick) && strspn(nick, "1234567890,-") == strlen(nick)) {
int count, last = -1, perm = 0;