summaryrefslogtreecommitdiff
path: root/src/conn.rs
diff options
context:
space:
mode:
authorstale <redkugelblitzin@gmail.com>2022-05-29 20:45:03 -0300
committerstale <redkugelblitzin@gmail.com>2022-05-29 20:45:03 -0300
commitbcd5764aa03e128e06c355272b7b81eac8d4501d (patch)
tree44e1076c24680325a02317c29d4838c547a6c49d /src/conn.rs
parent8e8fb7c45e8088843b71cb55fede723b2f9c7ff2 (diff)
improved pubs listing, many minor fixes
Diffstat (limited to 'src/conn.rs')
-rw-r--r--src/conn.rs2
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(" ", "&nbsp"), room.read().await.board_conf))).expect("couldn't send register ack");
+ tx.send(Message::text(format!("regack {} {uid} {}", name.replace(" ", "&nbsp"), 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}");
}