mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-19 16:58:55 +00:00
Quote and trim arguments in voting
This commit is contained in:
parent
9ac8683c5d
commit
1a499e782a
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ pub async fn vote(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult
|
|||
("🤢".to_owned(), "No! 🤢".to_owned()),
|
||||
]
|
||||
} else {
|
||||
let choices: Vec<_> = args.iter().map(|v| v.unwrap()).collect();
|
||||
let choices: Vec<_> = args.iter().quoted().trimmed().map(|v| v.unwrap()).collect();
|
||||
if choices.len() < 2 {
|
||||
// Where are the choices?
|
||||
msg.reply(
|
||||
|
|
Loading…
Add table
Reference in a new issue