diff options
Diffstat (limited to 'src')
| -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}");                              }  | 
