From 484baba6ad877eb0a3d7f560cbf67517c7597874 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 15 Oct 2012 03:39:34 -0400 Subject: [PATCH] Actually show the correct number of entries on /os logsearch output --- modules/commands/os_logsearch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/commands/os_logsearch.cpp b/modules/commands/os_logsearch.cpp index 0de6bc279..fab1ced51 100644 --- a/modules/commands/os_logsearch.cpp +++ b/modules/commands/os_logsearch.cpp @@ -121,7 +121,7 @@ class CommandOSLogSearch : public Command unsigned count = 0; for (std::list::iterator it = matches.begin(), it_end = matches.end(); it != it_end; ++it) source.Reply("#%d: %s", ++count, it->c_str()); - source.Reply(_("Showed %d/%d matches for \2%s\2"), replies, found, search_string.c_str()); + source.Reply(_("Showed %d/%d matches for \2%s\2"), matches.size(), found, search_string.c_str()); } bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override