8000 send_mode(target, modes) only sends first mode when more then one mode is specified. · Issue #240 · aatxe/irc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

New issue

Have a question about this 8000 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

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
0