mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-18 07:43:59 +00:00
Remove confusing lowercase comparison
If case insensitive handling is wanted here then it needs to show all matches not just an arbitrary first one. Since this forwards to searchlog which properly matches case insensitively anyway that does not seem particularly useful though.
This commit is contained in:
parent
fc4d11b2cb
commit
1a47a9943f
|
@ -2440,7 +2440,7 @@ void server::status_handler(
|
|||
// If a simple username is given we'll check for its IP instead.
|
||||
if(utils::isvalid_username(parameters)) {
|
||||
for(const auto& player : player_connections_) {
|
||||
if(utf8::lowercase(parameters) == utf8::lowercase(player.info().name())) {
|
||||
if(parameters == player.name()) {
|
||||
parameters = player.client_ip();
|
||||
found_something = true;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user