diff options
Diffstat (limited to 'mumctl/src')
| -rw-r--r-- | mumctl/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mumctl/src/main.rs b/mumctl/src/main.rs index d1d0a62..9d87541 100644 --- a/mumctl/src/main.rs +++ b/mumctl/src/main.rs @@ -381,13 +381,13 @@ fn match_opt() -> Result<(), Error> { } => { let msg = MumCommand::SendMessage { message, - targets: if !names.is_empty() { + targets: if names.is_empty() { + vec![MessageTarget::CurrentChannel { recursive }] + } else { names .into_iter() .map(|name| MessageTarget::Channel { name, recursive }) .collect() - } else { - vec![MessageTarget::CurrentChannel { recursive }] }, }; send_command(msg)??; |
