Author: soliton
Date: Tue May 5 22:23:26 2009
New Revision: 35452
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35452&view=rev
Log:
also log the reason of a ban when rejecting
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=35452&r1=35451&r2=35452&view=diff
==============================================================================
--- trunk/src/server/server.cpp (original)
+++ trunk/src/server/server.cpp Tue May 5 22:23:26 2009
@@ -747,7 +747,7 @@
const std::string ip =
network::ip_address(sock);
const std::string reason = is_ip_banned(ip);
if (!reason.empty()) {
- LOG_SERVER << ip << "\trejected banned
user.\n";
+ LOG_SERVER << ip << "\trejected banned
user. Reason: " << reason << "\n";
send_error(sock, ("You are banned.
Reason: " + reason).c_str());
network::disconnect(sock);
} else if (ip_exceeds_connection_limit(ip)) {
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits