summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2017-10-13 16:33:59 +0200
committerJokler <jokler.contact@gmail.com>2017-10-13 16:33:59 +0200
commitb7a2b610cf989e1261dee4ae42ca9348fe0710e8 (patch)
tree8cfb133ccf064f869aa33a231656e6b2c409efed /src
parent26f823b19d791e93a38712457df9294f3d1d2224 (diff)
downloadfrippy-b7a2b610cf989e1261dee4ae42ca9348fe0710e8.tar.gz
frippy-b7a2b610cf989e1261dee4ae42ca9348fe0710e8.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs1
1 files changed, 0 insertions, 1 deletions
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<PluginCommand> {
// Split content by spaces and filter empty tokens
let mut tokens: Vec<String> = content
.split(' ')
- .filter(|&x| !x.is_empty())
.map(ToOwned::to_owned)
.collect();