1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Don't apply secureops to users with chanserv/administration privilege, not protected

This commit is contained in:
Adam
2016-11-05 12:06:26 -04:00
parent 8be331618c
commit ef9c69f99d
+1 -1
View File
@@ -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;
}