From cc2a999b4e3498eaf38b01e8034a98e5849e0ef4 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 Nov 2013 10:04:26 -0500 Subject: Allow founders to change flags even if they don't have any matching access entries on the channel --- modules/commands/cs_flags.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/commands/cs_flags.cpp') diff --git a/modules/commands/cs_flags.cpp b/modules/commands/cs_flags.cpp index 6c65a72cb..b20bd11ec 100644 --- a/modules/commands/cs_flags.cpp +++ b/modules/commands/cs_flags.cpp @@ -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) { -- cgit