From 1a499e782a14683568239e1fa714cda036ae32d4 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Wed, 19 Jan 2022 18:36:13 -0500 Subject: [PATCH] Quote and trim arguments in voting --- youmubot-core/src/community/votes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youmubot-core/src/community/votes.rs b/youmubot-core/src/community/votes.rs index d1f9a88..fda3655 100644 --- a/youmubot-core/src/community/votes.rs +++ b/youmubot-core/src/community/votes.rs @@ -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(