Author: soliton
Date: Wed Jan 13 10:26:18 2010
New Revision: 40690
URL: http://svn.gna.org/viewcvs/wesnoth?rev=40690&view=rev
Log:
disabled automatic banning via the ip_log for now
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=40690&r1=40689&r2=40690&view=diff
==============================================================================
--- trunk/src/server/server.cpp (original)
+++ trunk/src/server/server.cpp Wed Jan 13 10:26:18 2010
@@ -1524,7 +1524,8 @@
if (!banned) {
// If nobody was banned yet check the ip_log
but only if a
// simple username was used to prevent
accidental bans.
- if (utils::isvalid_username(target)) {
+ // @todo FIXME: since we can have several
entries now we should only ban the latest or so
+ /*if (utils::isvalid_username(target)) {
for
(std::deque<connection_log>::const_iterator i = ip_log_.begin();
i != ip_log_.end();
++i) {
if (i->nick == target) {
@@ -1533,7 +1534,7 @@
out <<
ban_manager_.ban(i->ip, parsed_time, reason, issuer_name, group, target);
}
}
- }
+ }*/
if(!banned) {
out << "Nickmask '" << target << "' did
not match, no bans set.";
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits