From 304494322fa515f1d6dc294e333329ca4731bd29 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 3 Nov 2016 23:08:49 -0400 Subject: Don't apply secureops to protected users --- 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 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; } -- cgit