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:
Gunter Labes 2024-01-15 22:28:29 +01:00 committed by GitHub
parent fc4d11b2cb
commit 1a47a9943f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;