summaryrefslogtreecommitdiff
path: root/modules/commands/cs_flags.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-05-26 02:15:48 -0400
committerAdam <Adam@anope.org>2012-05-26 02:15:48 -0400
commit2cbfbc98e9bab3b63adf307bb9066203600ef16e (patch)
treebd5130a6a83af8f671f9e3817ff31caec070603c /modules/commands/cs_flags.cpp
parent38d5f20deba313355943883b7b539a82f7a701ee (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.cpp5
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;