diff options
author | stale <redkugelblitzin@gmail.com> | 2022-05-29 20:45:03 -0300 |
---|---|---|
committer | stale <redkugelblitzin@gmail.com> | 2022-05-29 20:45:03 -0300 |
commit | bcd5764aa03e128e06c355272b7b81eac8d4501d (patch) | |
tree | 44e1076c24680325a02317c29d4838c547a6c49d /src/conn.rs | |
parent | 8e8fb7c45e8088843b71cb55fede723b2f9c7ff2 (diff) |
improved pubs listing, many minor fixes
Diffstat (limited to 'src/conn.rs')
-rw-r--r-- | src/conn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn.rs b/src/conn.rs index 14777bf..d38b6ef 100644 --- a/src/conn.rs +++ b/src/conn.rs @@ -43,7 +43,7 @@ pub async fn lobby(socket: WebSocket, addr: SocketAddr, room: Arc<RwLock<Room>>) let conn = Conn { addr, tx: tx.clone() }; room.write().await.players.insert_conn(conn, name.clone(), clr).await }; - tx.send(Message::text(format!("regack {} {uid} {}", name.replace(" ", " "), room.read().await.board_conf))).expect("couldn't send register ack"); + tx.send(Message::text(format!("regack {} {uid} {}", name.replace(" ", " "), room.read().await.conf.board_conf))).expect("couldn't send register ack"); if let Err(e) = room.read().await.cmd_stream.send(MetaMove::Dump) { println!("couldn't request game dump in behalf of {addr}: {e}"); } |