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

Fix chanserv/enforce enforcing against founders.

Closes #532.
This commit is contained in:
Sadie Powell
2025-12-03 16:11:03 +00:00
parent f6c093ae23
commit 5a9f581491
+4 -2
View File
@@ -56,7 +56,8 @@ class CommandCSEnforce : public Command
if (user->IsProtected())
continue;
if (ci->AccessFor(user).empty())
AccessGroup access = ci->AccessFor(user);
if (!access.founder && access.empty())
users.push_back(user);
}
@@ -201,7 +202,8 @@ class CommandCSEnforce : public Command
if (user->IsProtected())
continue;
if (!ci->AccessFor(user).empty())
AccessGroup access = ci->AccessFor(user);
if (access.founder || !access.empty())
continue;
if (ci->c->users.size() - users.size() <= static_cast<unsigned>(l))