summaryrefslogtreecommitdiff
path: root/modules/commands/cs_mode.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-08 18:15:39 -0400
committerAdam <Adam@anope.org>2013-05-08 18:15:39 -0400
commit9ee7c825e120a56aa5c8b270ab7304354cad93c5 (patch)
treed7d89fe4d373f7331e9640b9456d30f553cfa0dd /modules/commands/cs_mode.cpp
parent912103ec13b712c692f6fecba56d6f08975220f9 (diff)
Check for peace being on before denying a mode change in cs_mode
Diffstat (limited to 'modules/commands/cs_mode.cpp')
-rw-r--r--modules/commands/cs_mode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp
index 38390251b..ef43d1061 100644
--- a/modules/commands/cs_mode.cpp
+++ b/modules/commands/cs_mode.cpp
@@ -300,7 +300,7 @@ class CommandCSMode : public Command
AccessGroup targ_access = ci->AccessFor(uc->user);
- if (uc->user->IsProtected() || targ_access > u_access)
+ if (uc->user->IsProtected() || (ci->HasExt("PEACE") && targ_access >= u_access))
{
source.Reply(_("You do not have the access to change %s's modes."), uc->user->nick.c_str());
continue;
@@ -333,7 +333,7 @@ class CommandCSMode : public Command
if (source.GetUser() != target)
{
AccessGroup targ_access = ci->AccessFor(target);
- if (targ_access > u_access)
+ if (ci->HasExt("PEACE") && targ_access >= u_access)
{
source.Reply(_("You do not have the access to change %s's modes."), target->nick.c_str());
break;