From fae2afdcc210037b566326b85eba9dcb85dba419 Mon Sep 17 00:00:00 2001 From: Thomas Baumhauer Date: Sun, 21 Sep 2008 18:28:00 +0000 Subject: [PATCH] renaming lookup to searchlog to clarify what it is for... ...and formating output like status --- src/server/server.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/server/server.cpp b/src/server/server.cpp index 55bab5db5bc..a8c50f2c9cc 100644 --- a/src/server/server.cpp +++ b/src/server/server.cpp @@ -1408,10 +1408,8 @@ std::string server::process_command(const std::string& query, const std::string& } motd_ = parameters; out << "Message of the day set to: " << motd_; - } else if (command == "lookup") { - if (parameters == "") { - return "You must enter an ip or nick mask to look up."; - } + } else if (command == "searchlog") { + out << "IP/NICK LOG\n"; bool found_something = false; @@ -1422,8 +1420,7 @@ std::string server::process_command(const std::string& query, const std::string& i != ip_log_.end(); i++) { if (utils::wildcard_string_match(i->second, parameters)) { found_something = true; - out << "Found nick '" << i->first << "' used '" << i->second - << "' which matched '" << parameters << "'\n"; + out << i->first << "@" << i->second << "\n"; } } } else { @@ -1431,8 +1428,7 @@ std::string server::process_command(const std::string& query, const std::string& i != ip_log_.end(); i++) { if (utils::wildcard_string_match(i->first, parameters)) { found_something = true; - out << "Found nick '" << i->first << "' which matched '" - << parameters << "' used '" << i->second << "'\n"; + out << "'" << i->first << "' @ " << i->second << "\n"; } } }