mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 16:36:33 +00:00
give an error message also on kick
This commit is contained in:
parent
680b4903e6
commit
142abd3a47
@ -1038,6 +1038,10 @@ void server::process_data_from_player_in_game(const network::connection sock, co
|
||||
const config& response = construct_server_message(
|
||||
"You cannot ban: not the game creator",*g);
|
||||
network::send_data(response,sock);
|
||||
} else if(data.child("kick")) {
|
||||
const config& response = construct_server_message(
|
||||
"You cannot kick: not the game creator",*g);
|
||||
network::send_data(response,sock);
|
||||
}
|
||||
|
||||
//if this is data describing changes to a game.
|
||||
|
Loading…
x
Reference in New Issue
Block a user