mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 16:57:50 +00:00
allow unbanning yourself
This commit is contained in:
parent
c889b08d8b
commit
b32deb5074
@ -697,10 +697,6 @@ void game::unban_user(const simple_wml::node& unban,
|
||||
send_server_message(("User '" + username.to_string() + "' not found.").c_str(), unbanner->first);
|
||||
return;
|
||||
}
|
||||
if (user->first == unbanner->first) {
|
||||
send_server_message("Don't ban yourself, silly.", unbanner->first);
|
||||
return;
|
||||
}
|
||||
if (!player_is_banned(user->first)) {
|
||||
send_server_message(("'" + username.to_string() + "' is not banned.").c_str(), unbanner->first);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user