diff options
| author | Jokler <jokler.contact@gmail.com> | 2017-10-13 16:33:59 +0200 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2017-10-13 16:33:59 +0200 |
| commit | b7a2b610cf989e1261dee4ae42ca9348fe0710e8 (patch) | |
| tree | 8cfb133ccf064f869aa33a231656e6b2c409efed | |
| parent | 26f823b19d791e93a38712457df9294f3d1d2224 (diff) | |
| download | frippy-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.
| -rw-r--r-- | src/lib.rs | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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(); |
