diff --git a/src/projections/irc/mod.rs b/src/projections/irc/mod.rs index 4c6808a..ca628be 100644 --- a/src/projections/irc/mod.rs +++ b/src/projections/irc/mod.rs @@ -669,8 +669,8 @@ async fn produce_on_join_cmd_messages( } .write_async(writer) .await?; - let prefixedMembers: Vec = room_info.members.iter().map(|member| PrefixedNick::fromPlayerId(member.clone()).unwrap()).collect(); - let nonEmptyMembers: NonEmpty = NonEmpty::from_vec(prefixedMembers).unwrap_or(nonempty![PrefixedNick::fromStr(user.nickname.clone()).unwrap()]); + let prefixed_members: Vec = room_info.members.iter().map(|member| PrefixedNick::fromPlayerId(member.clone()).unwrap()).collect(); + let non_empty_members: NonEmpty = NonEmpty::from_vec(prefixed_members).unwrap_or(nonempty![PrefixedNick::fromStr(user.nickname.clone()).unwrap()]); ServerMessage { tags: vec![], @@ -678,7 +678,7 @@ async fn produce_on_join_cmd_messages( body: ServerMessageBody::N353NamesReply { client: user.nickname.clone(), chan: chan.clone(), - members: nonEmptyMembers.into(), + members: non_empty_members.into(), }, } .write_async(writer) diff --git a/src/protos/irc/server.rs b/src/protos/irc/server.rs index 990941e..194c756 100644 --- a/src/protos/irc/server.rs +++ b/src/protos/irc/server.rs @@ -281,9 +281,6 @@ impl ServerMessageBody { chan, members, } => { - let mut membersTail: Vec = members.tail.clone(); - membersTail.insert(0, members.clone().head); - writer.write_all(b"353 ").await?; writer.write_all(client.as_bytes()).await?; writer.write_all(b" = ").await?;