diff options
author | Adam <Adam@anope.org> | 2017-01-07 18:09:14 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-01-07 18:09:14 -0500 |
commit | 46aeb8b70b116ffe37a6f1a72ddb9c69b7cccc98 (patch) | |
tree | 1307d02a6f89ce56913a796917db09aec0315b4c /modules/commands/os_list.cpp | |
parent | fe6271dffb92707a013a53b6e704ae2ceec36ebb (diff) |
os_list: show number of channels listed, too
Diffstat (limited to 'modules/commands/os_list.cpp')
-rw-r--r-- | modules/commands/os_list.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/commands/os_list.cpp b/modules/commands/os_list.cpp index 810ea56df..780cdd05e 100644 --- a/modules/commands/os_list.cpp +++ b/modules/commands/os_list.cpp @@ -26,6 +26,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()) Log(LOG_ADMIN, source, this) << "for " << pattern; @@ -60,6 +61,8 @@ class CommandOSChanList : public Command entry["Modes"] = cc->chan->GetModes(true, true); entry["Topic"] = cc->chan->topic; list.AddEntry(entry); + + ++count; } } else @@ -83,6 +86,8 @@ class CommandOSChanList : public Command entry["Modes"] = c->GetModes(true, true); entry["Topic"] = c->topic; list.AddEntry(entry); + + ++count; } } @@ -92,7 +97,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%u\002 channels shown."), count); } bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override |