From 2cbfbc98e9bab3b63adf307bb9066203600ef16e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 26 May 2012 02:15:48 -0400 Subject: Some access level fixes from Robby to more closely match the historic levels, and some code cleanup --- modules/commands/cs_flags.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/commands/cs_flags.cpp') 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; -- cgit