When using either Client or Sender's send_mode(target, modes) function only the first mode in the array is set.
For example this will only set mode #channel +v nickname
sender.send_mode(&channel, &[
Mode::Plus(ChannelMode::Voice, Some(nickname.to_string())),
Mode::Plus(ChannelMode::Oper, Some(nickname.to_string()))
])?;
Or this will only set mode #channel +o nickname
sender.send_mode(&channel, &[
Mode::Plus(ChannelMode::Oper, Some(nickname.to_string())),
Mode::Plus(ChannelMode::Voice, Some(nickname.to_string()))
])?;
Other info:
- irc crate: 0.15.0
- rust: 1.59.0
- network: EFnet