forked from lavina/lavina
camelCase to snake_case
This commit is contained in:
parent
cf6022827d
commit
eb123da0e9
|
@ -669,8 +669,8 @@ async fn produce_on_join_cmd_messages(
|
||||||
}
|
}
|
||||||
.write_async(writer)
|
.write_async(writer)
|
||||||
.await?;
|
.await?;
|
||||||
let prefixedMembers: Vec<PrefixedNick> = room_info.members.iter().map(|member| PrefixedNick::fromPlayerId(member.clone()).unwrap()).collect();
|
let prefixed_members: Vec<PrefixedNick> = room_info.members.iter().map(|member| PrefixedNick::fromPlayerId(member.clone()).unwrap()).collect();
|
||||||
let nonEmptyMembers: NonEmpty<PrefixedNick> = NonEmpty::from_vec(prefixedMembers).unwrap_or(nonempty![PrefixedNick::fromStr(user.nickname.clone()).unwrap()]);
|
let non_empty_members: NonEmpty<PrefixedNick> = NonEmpty::from_vec(prefixed_members).unwrap_or(nonempty![PrefixedNick::fromStr(user.nickname.clone()).unwrap()]);
|
||||||
|
|
||||||
ServerMessage {
|
ServerMessage {
|
||||||
tags: vec![],
|
tags: vec![],
|
||||||
|
@ -678,7 +678,7 @@ async fn produce_on_join_cmd_messages(
|
||||||
body: ServerMessageBody::N353NamesReply {
|
body: ServerMessageBody::N353NamesReply {
|
||||||
client: user.nickname.clone(),
|
client: user.nickname.clone(),
|
||||||
chan: chan.clone(),
|
chan: chan.clone(),
|
||||||
members: nonEmptyMembers.into(),
|
members: non_empty_members.into(),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
.write_async(writer)
|
.write_async(writer)
|
||||||
|
|
|
@ -281,9 +281,6 @@ impl ServerMessageBody {
|
||||||
chan,
|
chan,
|
||||||
members,
|
members,
|
||||||
} => {
|
} => {
|
||||||
let mut membersTail: Vec<PrefixedNick> = members.tail.clone();
|
|
||||||
membersTail.insert(0, members.clone().head);
|
|
||||||
|
|
||||||
writer.write_all(b"353 ").await?;
|
writer.write_all(b"353 ").await?;
|
||||||
writer.write_all(client.as_bytes()).await?;
|
writer.write_all(client.as_bytes()).await?;
|
||||||
writer.write_all(b" = ").await?;
|
writer.write_all(b" = ").await?;
|
||||||
|
|
Loading…
Reference in New Issue