# HG changeset patch # User alfadur # Date 1557172669 -10800 # Node ID e72d8c2299ddf50717be814cf9a13806730e4fcb # Parent ff2c19a462de5d0950ba7bac2cab53a27da705f4 fix broken messages on lobby join diff -r ff2c19a462de -r e72d8c2299dd rust/hedgewars-server/src/server/handlers/common.rs --- a/rust/hedgewars-server/src/server/handlers/common.rs Mon May 06 21:33:48 2019 +0200 +++ b/rust/hedgewars-server/src/server/handlers/common.rs Mon May 06 22:57:49 2019 +0300 @@ -90,7 +90,9 @@ response.add(LobbyJoined(all_nicks).send_self()); for (flag, nicks) in &mut flag_selectors { - response.add(ClientFlags(add_flags(&[*flag]), replace(nicks, vec![])).send_self()); + if !nicks.is_empty() { + response.add(ClientFlags(add_flags(&[*flag]), replace(nicks, vec![])).send_self()); + } } response.add(server_msg.send_self());