rust/hedgewars-server/src/server/handlers/common.rs
changeset 14804 b3adc030104b
parent 14803 50fcef24003f
child 14805 8390d5e4e39c
--- a/rust/hedgewars-server/src/server/handlers/common.rs	Wed Apr 10 16:14:33 2019 +0300
+++ b/rust/hedgewars-server/src/server/handlers/common.rs	Wed Apr 10 18:12:30 2019 +0300
@@ -47,7 +47,7 @@
         add_flags(&[Flags::InRoom]),
         server.collect_nicks(|(_, c)| c.room_id.is_some()),
     );
-    let server_msg = ServerMessage("\u{1f994} is watching".to_string());
+    let server_msg = ServerMessage(server.get_greetings(client_id).to_string());
 
     let rooms_msg = Rooms(
         server
@@ -138,9 +138,12 @@
         if client.is_master() && !room.is_fixed() {
             client.set_is_master(false);
             response.add(
-                ClientFlags(remove_flags(&[Flags::RoomMaster]), vec![client.nick.clone()])
-                    .send_all()
-                    .in_room(room.id),
+                ClientFlags(
+                    remove_flags(&[Flags::RoomMaster]),
+                    vec![client.nick.clone()],
+                )
+                .send_all()
+                .in_room(room.id),
             );
             room.master_id = None;
         }