summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-11-03 23:08:49 -0400
committerAdam <Adam@anope.org>2016-11-03 23:08:49 -0400
commit304494322fa515f1d6dc294e333329ca4731bd29 (patch)
tree333868feecc25a1d089b022bc2526f21db7482ea
parent9e510cd0d992836793cfa99db31f05c041bd91df (diff)
Don't apply secureops to protected users
-rw-r--r--modules/commands/cs_set.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp
index bac744b2c..1275c27b4 100644
--- a/modules/commands/cs_set.cpp
+++ b/modules/commands/cs_set.cpp
@@ -1314,7 +1314,7 @@ class CSSet : public Module
{
if (noautoop.HasExt(chan->ci))
give_modes = false;
- if (secureops.HasExt(chan->ci))
+ if (secureops.HasExt(chan->ci) && !user->IsProtected())
// This overrides what chanserv does because it is loaded after chanserv
take_modes = true;
}