From b7a2b610cf989e1261dee4ae42ca9348fe0710e8 Mon Sep 17 00:00:00 2001 From: Jokler Date: Fri, 13 Oct 2017 16:33:59 +0200 Subject: Do not filter out empty Strings This makes the command syntax more strict but allows plugins to recreate the original command by joining the tokens. --- src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c00d3ca..cda4e39 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -134,7 +134,6 @@ fn get_command(nick: &str, message: &Message) -> Option { // Split content by spaces and filter empty tokens let mut tokens: Vec = content .split(' ') - .filter(|&x| !x.is_empty()) .map(ToOwned::to_owned) .collect(); -- cgit v1.2.3-70-g09d2