Author: baufo
Date: Tue Sep 23 20:38:23 2008
New Revision: 29666

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29666&view=rev
Log:
backporting the kicked/banned messages

Modified:
    branches/1.4/src/server/server.cpp

Modified: branches/1.4/src/server/server.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/src/server/server.cpp?rev=29666&r1=29665&r2=29666&view=diff
==============================================================================
--- branches/1.4/src/server/server.cpp (original)
+++ branches/1.4/src/server/server.cpp Tue Sep 23 20:38:23 2008
@@ -1029,6 +1029,7 @@
                                {
                                        if 
(utils::wildcard_string_match(network::ip_address(pl->first), target)) {
                                                out << "\nKicked " << 
pl->second.name() << ".";
+                                               send_error(pl->first, ("You 
have been banned. Reason: " + reason).c_str());
                                                
network::queue_disconnect(pl->first);
                                        }
                                }
@@ -1046,6 +1047,7 @@
                                        }
                                        if (kick) {
                                                out << "\nKicked " << 
pl->second.name() << ".";
+                                               send_error(pl->first, ("You 
have been banned. Reason: " + reason).c_str());
                                                
network::queue_disconnect(pl->first);
                                        }
                                }
@@ -1077,6 +1079,7 @@
                                if 
(utils::wildcard_string_match(network::ip_address(pl->first), parameters)) {
                                        kicked = true;
                                        out << "Kicked " << pl->second.name() 
<< ".\n";
+                                       send_error(pl->first, "You have been 
kicked.");
                                        network::queue_disconnect(pl->first);
                                }
                        }
@@ -1088,6 +1091,7 @@
                                        kicked = true;
                                        out << "Kicked " << pl->second.name() 
<< " ("
                                                << 
network::ip_address(pl->first) << ").\n";
+                                       send_error(pl->first, "You have been 
kicked.");
                                        network::queue_disconnect(pl->first);
                                }
                        }


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to