rust/hedgewars-server/src/handlers.rs
changeset 15181 f6115638aa92
parent 15168 bcb98009ad39
child 15221 387345a14b3f
--- a/rust/hedgewars-server/src/handlers.rs	Wed Jun 19 01:47:56 2019 +0300
+++ b/rust/hedgewars-server/src/handlers.rs	Wed Jun 19 02:40:00 2019 +0300
@@ -343,11 +343,18 @@
     }
 }
 
-pub fn handle_client_accept(server: &mut HwServer, client_id: ClientId, response: &mut Response) {
+pub fn handle_client_accept(
+    server: &mut HwServer,
+    client_id: ClientId,
+    response: &mut Response,
+    is_local: bool,
+) {
     let mut salt = [0u8; 18];
     thread_rng().fill_bytes(&mut salt);
 
-    server.anteroom.add_client(client_id, encode(&salt));
+    server
+        .anteroom
+        .add_client(client_id, encode(&salt), is_local);
 
     response.add(HwServerMessage::Connected(utils::SERVER_VERSION).send_self());
 }