summaryrefslogtreecommitdiff
path: root/modules/commands/cs_flags.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-11-16 10:04:26 -0500
committerAdam <Adam@anope.org>2013-11-16 10:04:26 -0500
commitcc2a999b4e3498eaf38b01e8034a98e5849e0ef4 (patch)
tree4081f6763d68021147daad849c53a062a86ffe26 /modules/commands/cs_flags.cpp
parent51a9f64adb2e5fb3c3d9ab1adabd44644727c5b1 (diff)
Allow founders to change flags even if they don't have any matching access entries on the channel
Diffstat (limited to 'modules/commands/cs_flags.cpp')
-rw-r--r--modules/commands/cs_flags.cpp4
1 files changed, 1 insertions, 3 deletions
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)
{