diff options
author | Adam <Adam@anope.org> | 2016-11-05 12:06:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-11-05 12:06:26 -0400 |
commit | ef9c69f99dfc8f1a7597ed1cbf58ca075d6bc8b9 (patch) | |
tree | 16560bda0f47bba9b32ec30aa0233d85ea103f93 /modules/commands/cs_set.cpp | |
parent | 8be331618c4a49a8cb77624056c88a03fa847571 (diff) |
Don't apply secureops to users with chanserv/administration privilege, not protected
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 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; } |