equal
deleted
inserted
replaced
444 }; |
444 }; |
445 |
445 |
446 match error { |
446 match error { |
447 None => { |
447 None => { |
448 let msg = voting_description(&kind); |
448 let msg = voting_description(&kind); |
449 let voting = Voting::new(kind, server.collect_room_clients(client_id)); |
449 let voting = Voting::new(kind, server.room_clients(client_id).collect()); |
450 let room = &mut server.rooms[room_id]; |
450 let room = &mut server.rooms[room_id]; |
451 room.voting = Some(voting); |
451 room.voting = Some(voting); |
452 response.add(server_chat(msg).send_all().in_room(room_id)); |
452 response.add(server_chat(msg).send_all().in_room(room_id)); |
453 super::common::submit_vote( |
453 super::common::submit_vote( |
454 server, |
454 server, |