backporting the kicked/banned messages
This commit is contained in:
parent
970aae2eda
commit
4be1765273
1 changed files with 4 additions and 0 deletions
|
@ -1029,6 +1029,7 @@ std::string server::process_command(const std::string& query, const std::string&
|
|||
{
|
||||
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 @@ std::string server::process_command(const std::string& query, const std::string&
|
|||
}
|
||||
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 @@ std::string server::process_command(const std::string& query, const std::string&
|
|||
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 @@ std::string server::process_command(const std::string& query, const std::string&
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue