From ef9c69f99dfc8f1a7597ed1cbf58ca075d6bc8b9 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 5 Nov 2016 12:06:26 -0400 Subject: Don't apply secureops to users with chanserv/administration privilege, not protected --- modules/commands/cs_set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands/cs_set.cpp') 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; } -- cgit