--- a/rust/hedgewars-server/src/handlers/inlobby.rs Mon Mar 25 16:05:11 2024 +0300
+++ b/rust/hedgewars-server/src/handlers/inlobby.rs Wed Mar 27 02:19:44 2024 +0300
@@ -66,8 +66,8 @@
JoinRoom(name, password) => {
match server.join_room_by_name(client_id, &name, password.as_deref()) {
Err(error) => super::common::get_room_join_error(error, response),
- Ok((client, room, room_clients)) => {
- super::common::get_room_join_data(client, room, room_clients, response)
+ Ok((client, master, room, room_clients)) => {
+ super::common::get_room_join_data(client, master, room, room_clients, response)
}
}
}
@@ -76,8 +76,8 @@
if let Some(room_id) = client.room_id {
match server.join_room(client_id, room_id, None) {
Err(error) => super::common::get_room_join_error(error, response),
- Ok((client, room, room_clients)) => {
- super::common::get_room_join_data(client, room, room_clients, response)
+ Ok((client, master, room, room_clients)) => {
+ super::common::get_room_join_data(client, master, room, room_clients, response)
}
}
} else {