summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rw-r--r--src/core/cs_xop.c5
-rw-r--r--version.log6
3 files changed, 11 insertions, 1 deletions
diff --git a/Changes b/Changes
index 01e54a8d0..56f4469af 100644
--- a/Changes
+++ b/Changes
@@ -29,6 +29,7 @@ Provided by Anope Dev. <dev@anope.org> - 2006
06/16 F Fixed several memleaks in ns_noop.c. [ #00]
06/16 F Fixed typo in function name. [#524]
06/18 F Removed legacy my_vsnprintf code. [#496]
+06/18 F HOP cannot remove VOPs anymore to be consitent with adding. [#525]
Provided by ThaPrince <jon@vile.com> - 2006
05/19 A Plexus 3 support. [ #00]
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;
diff --git a/version.log b/version.log
index c61757efe..393776650 100644
--- a/version.log
+++ b/version.log
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="14"
VERSION_EXTRA=""
-VERSION_BUILD="1058"
+VERSION_BUILD="1059"
# $Log$
#
+# 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)
+#
# BUILD : 1.7.14 (1058)
# BUGS : 496
# NOTES : Removed legacy my_vsnprintf() code and anything related; detection for it was already gone...