From 64eec86021d23086a768ed2faf38d92fd6f8cf29 Mon Sep 17 00:00:00 2001 From: stale Date: Mon, 6 Jun 2022 00:12:47 -0300 Subject: fix spaces breaking stuff --- src/conn.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/conn.rs') diff --git a/src/conn.rs b/src/conn.rs index 764c573..ed4192c 100644 --- a/src/conn.rs +++ b/src/conn.rs @@ -154,7 +154,9 @@ pub async fn handle_room(streams: (SplitStream,tokio::sync::mpsc::Unb let conn = Conn { addr, tx: tx.clone() }; room.write().await.players.insert_conn(conn, name.clone(), clr).await }; - tx.send(Message::text(format!("regack {} {} {} {}", room_conf.name, name.replace(" ", " "), uid, room_conf.board_conf))).expect("couldn't send register ack"); + tx.send(Message::text(format!("regack {} {} {} {}", + room_conf.name.replace(" ", " "), name.replace(" ", " "), uid, room_conf.board_conf)) + ).expect("couldn't send register ack"); if let Err(e) = room.read().await.cmd_stream.send(MetaMove::Dump) { println!("{room_id} E: couldn't request game dump in behalf of {addr}: {e}"); } -- cgit v1.2.3