summaryrefslogtreecommitdiff
path: root/modules/commands/cs_status.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/cs_status.cpp')
-rw-r--r--modules/commands/cs_status.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/commands/cs_status.cpp b/modules/commands/cs_status.cpp
index 7404cce5d..9d5f856f8 100644
--- a/modules/commands/cs_status.cpp
+++ b/modules/commands/cs_status.cpp
@@ -20,7 +20,7 @@ public:
this->SetSyntax(_("\037channel\037 [\037user\037]"));
}
- void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
+ void Execute(CommandSource &source, const std::vector<Anope::string> &params) override
{
const Anope::string &channel = params[0];
@@ -57,11 +57,9 @@ public:
{
source.Reply(_("Access for \002%s\002 on \002%s\002:"), nick.c_str(), ci->name.c_str());
- for (unsigned i = 0; i < ag.paths.size(); ++i)
+ for (const auto &p : ag.paths)
{
- ChanAccess::Path &p = ag.paths[i];
-
- if (p.empty())
+ if (p.empty())
continue;
if (p.size() == 1)
@@ -99,7 +97,7 @@ public:
}
}
- bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
+ bool OnHelp(CommandSource &source, const Anope::string &subcommand) override
{
this->SendSyntax(source);
source.Reply(" ");