diff options
author | Adam <Adam@anope.org> | 2016-11-03 23:08:49 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-11-03 23:08:49 -0400 |
commit | 304494322fa515f1d6dc294e333329ca4731bd29 (patch) | |
tree | 333868feecc25a1d089b022bc2526f21db7482ea /modules/commands/cs_set.cpp | |
parent | 9e510cd0d992836793cfa99db31f05c041bd91df (diff) |
Don't apply secureops to protected users
Diffstat (limited to 'modules/commands/cs_set.cpp')
-rw-r--r-- | modules/commands/cs_set.cpp | 2 |
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; } |