changeset 14891 | ce98c37826a7 |
parent 14802 | 01f8ab45f806 |
--- a/rust/hedgewars-server/src/server/handlers/loggingin.rs Wed May 01 00:13:23 2019 +0200 +++ b/rust/hedgewars-server/src/server/handlers/loggingin.rs Wed May 01 16:37:47 2019 +0300 @@ -72,7 +72,7 @@ } HWProtocolMessage::Nick(nick) => { let client = &mut server.anteroom.clients[client_id]; - debug!("{} {}", nick, is_name_illegal(&nick)); + if client.nick.is_some() { response.add(Error("Nickname already provided.".to_string()).send_self()); LoginResult::Unchanged