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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue