Author: baufo
Date: Sun Sep 21 20:28:00 2008
New Revision: 29628
URL: http://svn.gna.org/viewcvs/wesnoth?rev=29628&view=rev
Log:
renaming lookup to searchlog to clarify what it is for and formating output
like status
Modified:
trunk/src/server/server.cpp
Modified: trunk/src/server/server.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/server.cpp?rev=29628&r1=29627&r2=29628&view=diff
==============================================================================
--- trunk/src/server/server.cpp (original)
+++ trunk/src/server/server.cpp Sun Sep 21 20:28:00 2008
@@ -1408,10 +1408,8 @@
}
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 @@
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 @@
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";
}
}
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits