summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstale <redkugelblitzin@gmail.com>2022-06-06 00:12:47 -0300
committerstale <redkugelblitzin@gmail.com>2022-06-06 00:12:47 -0300
commit64eec86021d23086a768ed2faf38d92fd6f8cf29 (patch)
treeea4e01b4ea379b1d1fd45b413c19c54a3794d27b
parentc1ea47a7311eaa27e0f50830f500081d2bc28499 (diff)
fix spaces breaking stuff
-rw-r--r--src/conn.rs4
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(" ", "&nbsp"), uid, room_conf.board_conf))).expect("couldn't send register ack");
+ tx.send(Message::text(format!("regack {} {} {} {}",
+ room_conf.name.replace(" ", "&nbsp;"), name.replace(" ", "&nbsp;"), 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}");
}