Skip to content

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

@Ep0chalypse

Description

@Ep0chalypse

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions