mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 16:11:40 +00:00
renaming lookup to searchlog to clarify what it is for...
...and formating output like status
This commit is contained in:
parent
92ea5b9c25
commit
fae2afdcc2
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user