summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-04-07 19:57:26 -0400
committerAdam <Adam@anope.org>2017-04-07 19:57:26 -0400
commit70c9dccee89818da4c2522266f6fb35a294fd08d (patch)
tree1f6ba51451b9c0c1eecde2c257f1b5f22ed3ff7e
parent06a9c66a1890e86df1d48f0ac400ab291700ccaa (diff)
parent46aeb8b70b116ffe37a6f1a72ddb9c69b7cccc98 (diff)
Merge commit '46aeb8b70b116ffe37a6f1a72ddb9c69b7cccc98'
-rw-r--r--modules/operserv/list.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/operserv/list.cpp b/modules/operserv/list.cpp
index 77eaf56ed..846f3f2c3 100644
--- a/modules/operserv/list.cpp
+++ b/modules/operserv/list.cpp
@@ -34,6 +34,7 @@ class CommandOSChanList : public Command
const Anope::string &opt = params.size() > 1 ? params[1] : "";
std::set<Anope::string> modes;
User *u2;
+ unsigned int count = 0;
if (!pattern.empty())
logger.Admin(source, _("{source} used {command} for {0}"), pattern);
@@ -68,6 +69,8 @@ class CommandOSChanList : public Command
entry["Modes"] = cc->chan->GetModes(true, true);
entry["Topic"] = cc->chan->topic;
list.AddEntry(entry);
+
+ ++count;
}
}
else
@@ -91,6 +94,8 @@ class CommandOSChanList : public Command
entry["Modes"] = c->GetModes(true, true);
entry["Topic"] = c->topic;
list.AddEntry(entry);
+
+ ++count;
}
}
@@ -100,7 +105,7 @@ class CommandOSChanList : public Command
for (unsigned i = 0; i < replies.size(); ++i)
source.Reply(replies[i]);
- source.Reply(_("End of channel list."));
+ source.Reply(_("End of channel list. \002{0}\002 channels shown."), count);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) override