Author: soliton
Date: Fri Oct 3 04:53:46 2008
New Revision: 29820
URL: http://svn.gna.org/viewcvs/wesnoth?rev=29820&view=rev
Log:
fixed a typo and removed an unneeded #ifdef
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=29820&r1=29819&r2=29820&view=diff
==============================================================================
--- trunk/src/server/server.cpp (original)
+++ trunk/src/server/server.cpp Fri Oct 3 04:53:46 2008
@@ -1185,7 +1185,7 @@
const std::string& help_msg = "Available commands are: ban <mask>
[<time>] <reason>,"
" bans [deleted], kick <mask>, k[ick]ban <mask>
[<time>] <reason>,"
" help, games, metrics, netstats [all], [lobby]msg
<message>, motd [<message>],"
- " requestes, stats, status [<mask>], searchlog
[<mask>], unban <ipmask>";
+ " requests, stats, status [<mask>], searchlog [<mask>],
unban <ipmask>";
// Shutdown, restart and sample commands can only be issued via the
socket.
if (command == "shut_down") {
if (issuer_name != "*socket*") return "";
@@ -1199,9 +1199,6 @@
process_command("msg The server is shutting down. You
may finish your games but can't start new ones. Once all games have ended the
server will exit.", issuer_name);
out << "Server is doing graceful shut down.";
}
-
-#ifndef _WIN32 // Not sure if this works on windows
- // TODO: check if this works in windows.
} else if (command == "restart") {
if (issuer_name != "*socket*") return "";
if (restart_command.empty()) {
@@ -1217,7 +1214,6 @@
process_command("msg The server has been restarted. You
may finish current games but can't start new ones and new players can't join
this (old) server instance. (So if a player of your game disconnects you have
to save, reconnect and reload the game on the new server instance. It is
actually recommended to do that right away.)", issuer_name);
out << "New server started.";
}
-#endif
} else if (command == "sample") {
if (parameters.empty()) {
out << "Current sample frequency: " <<
request_sample_frequency;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits