Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send_mode(target, modes) only sends first mode when more then one mode is specified. #240

Open
Ep0chalypse opened this issue Mar 30, 2022 · 0 comments
Labels

Comments

@Ep0chalypse
Copy link

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
@aatxe aatxe added the bug label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants