summaryrefslogtreecommitdiff
path: root/modules/commands/cs_set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/cs_set.cpp')
-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;
}