diff options
author | Adam <Adam@anope.org> | 2012-05-26 02:15:48 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-05-26 02:15:48 -0400 |
commit | 2cbfbc98e9bab3b63adf307bb9066203600ef16e (patch) | |
tree | bd5130a6a83af8f671f9e3817ff31caec070603c /modules/commands/cs_flags.cpp | |
parent | 38d5f20deba313355943883b7b539a82f7a701ee (diff) |
Some access level fixes from Robby to more closely match the historic levels, and some code cleanup
Diffstat (limited to 'modules/commands/cs_flags.cpp')
-rw-r--r-- | modules/commands/cs_flags.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/commands/cs_flags.cpp b/modules/commands/cs_flags.cpp index 35c2aac0a..52d826e97 100644 --- a/modules/commands/cs_flags.cpp +++ b/modules/commands/cs_flags.cpp @@ -166,7 +166,7 @@ class CommandCSFlags : public Command else { source.Reply(_("You can not set the \002%c\002 flag."), f); - continue; + break; } } if (add == 1) @@ -235,10 +235,11 @@ class CommandCSFlags : public Command for (unsigned i = 0, end = ci->GetAccessCount(); i < end; ++i) { const ChanAccess *access = ci->GetAccess(i); - const Anope::string &flags = FlagsChanAccess::DetermineFlags(access); if (!arg.empty()) { + const Anope::string &flags = FlagsChanAccess::DetermineFlags(access); + if (arg[0] == '+') { bool pass = true; |