diff options
author | stale <redkugelblitzin@gmail.com> | 2022-06-06 00:12:47 -0300 |
---|---|---|
committer | stale <redkugelblitzin@gmail.com> | 2022-06-06 00:12:47 -0300 |
commit | 64eec86021d23086a768ed2faf38d92fd6f8cf29 (patch) | |
tree | ea4e01b4ea379b1d1fd45b413c19c54a3794d27b /src/conn.rs | |
parent | c1ea47a7311eaa27e0f50830f500081d2bc28499 (diff) |
fix spaces breaking stuff
Diffstat (limited to 'src/conn.rs')
-rw-r--r-- | src/conn.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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<WebSocket>,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}"); } |