rust/hedgewars-server/src/server/handlers/common.rs
changeset 14891 e72d8c2299dd
parent 14801 da0cfeee9d96
equal deleted inserted replaced
14890:ff2c19a462de 14891:e72d8c2299dd
    88             .but_self(),
    88             .but_self(),
    89     );
    89     );
    90 
    90 
    91     response.add(LobbyJoined(all_nicks).send_self());
    91     response.add(LobbyJoined(all_nicks).send_self());
    92     for (flag, nicks) in &mut flag_selectors {
    92     for (flag, nicks) in &mut flag_selectors {
    93         response.add(ClientFlags(add_flags(&[*flag]), replace(nicks, vec![])).send_self());
    93         if !nicks.is_empty() {
       
    94             response.add(ClientFlags(add_flags(&[*flag]), replace(nicks, vec![])).send_self());
       
    95         }
    94     }
    96     }
    95 
    97 
    96     response.add(server_msg.send_self());
    98     response.add(server_msg.send_self());
    97     response.add(rooms_msg.send_self());
    99     response.add(rooms_msg.send_self());
    98 }
   100 }