diff options
author | Adam <Adam@anope.org> | 2016-10-02 13:58:36 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-02 13:58:36 -0400 |
commit | 683cface5beeef959c6a972d16dd2e97cc7c6aa2 (patch) | |
tree | 26ae3c962918c59b1f0eefae390c7c76604b806d | |
parent | 9e4ed1439269c15d3c3c5cd37591fa79af252d61 (diff) |
Change access check in cs_updown to not allow actions on users with equal access
-rw-r--r-- | modules/chanserv/updown.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/chanserv/updown.cpp b/modules/chanserv/updown.cpp index 9eb8173f5..baa540163 100644 --- a/modules/chanserv/updown.cpp +++ b/modules/chanserv/updown.cpp @@ -119,7 +119,7 @@ class CommandCSUp : public Command if (source.GetUser() && u != source.GetUser() && c->ci->HasFieldS("PEACE")) { - if (c->ci->AccessFor(u) > c->ci->AccessFor(source.GetUser())) + if (c->ci->AccessFor(u) >= c->ci->AccessFor(source.GetUser())) { if (source.HasPriv("chanserv/administration")) override = true; @@ -226,7 +226,7 @@ class CommandCSDown : public Command if (source.GetUser() && u != source.GetUser() && c->ci->HasFieldS("PEACE")) { - if (c->ci->AccessFor(u) > c->ci->AccessFor(source.GetUser())) + if (c->ci->AccessFor(u) >= c->ci->AccessFor(source.GetUser())) { if (source.HasPriv("chanserv/administration")) override = true; |