chore: add logging doubled names

This commit is contained in:
2026-08-16 21:36:17 +02:00
parent d4fc5dff2e
commit 5cb99cd45a

View File

@@ -248,9 +248,13 @@ impl Server {
.values()
.any(|v| v.identity.name == player_name)
{
fixed_name = format!("{}(2)", player_name)
fixed_name = format!("{}(2)", player_name);
warn!(
"Player has the same name as the other player so changing it to {}",
fixed_name
);
} else {
fixed_name = player_name
fixed_name = player_name;
}
let Some(identity) = self.connections.get_mut(&addr) else {