diff options
| author | Jokler <jokler.contact@gmail.com> | 2017-10-13 16:56:22 +0200 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2017-10-13 16:56:22 +0200 |
| commit | ee1e7dfae96af5a426176f396ca3a23706033c45 (patch) | |
| tree | 5e75c41508dfa63f09bf8eba8f6c50e3a8856746 /src/lib.rs | |
| parent | 28e2b1ca8577ab52a42fa0ab76dd28a04659fe5c (diff) | |
| download | frippy-ee1e7dfae96af5a426176f396ca3a23706033c45.tar.gz frippy-ee1e7dfae96af5a426176f396ca3a23706033c45.zip | |
Remove now redundant check
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -137,11 +137,6 @@ fn get_command(nick: &str, message: &Message) -> Option<PluginCommand> { .map(ToOwned::to_owned) .collect(); - // Check if the message contained nothing but spaces - if tokens.is_empty() { - return None; - } - // Commands start with our name if tokens[0].to_lowercase().starts_with(nick) { |
