summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-11-05 12:06:26 -0400
committerAdam <Adam@anope.org>2016-11-05 12:06:26 -0400
commitef9c69f99dfc8f1a7597ed1cbf58ca075d6bc8b9 (patch)
tree16560bda0f47bba9b32ec30aa0233d85ea103f93
parent8be331618c4a49a8cb77624056c88a03fa847571 (diff)
Don't apply secureops to users with chanserv/administration privilege, not protected
-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 1275c27b4..6f423b85f 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) && !user->IsProtected())
+ if (secureops.HasExt(chan->ci) && !user->HasPriv("chanserv/administration"))
// This overrides what chanserv does because it is loaded after chanserv
take_modes = true;
}