1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 13:26:38 +02:00

Allow founders to change flags even if they don't have any matching access entries on the channel

This commit is contained in:
Adam
2013-11-16 10:04:26 -05:00
parent 51a9f64adb
commit cc2a999b4e
+1 -3
View File
@@ -91,8 +91,6 @@ class CommandCSFlags : public Command
AccessGroup u_access = source.AccessFor(ci);
const ChanAccess *highest = u_access.Highest();
if (!highest)
return;
if (IRCD->IsChannelValid(mask))
{
@@ -147,7 +145,7 @@ class CommandCSFlags : public Command
{
// Flags allows removing others that have the same access as you,
// but no other access system does.
if (highest->provider != FlagsAccessProvider::ap)
if (highest && highest->provider != FlagsAccessProvider::ap && !u_access.founder)
// operator<= on the non-me entry!
if (*highest <= *access)
{