aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2017-10-13 16:56:22 +0200
committerJokler <jokler.contact@gmail.com>2017-10-13 16:56:22 +0200
commitee1e7dfae96af5a426176f396ca3a23706033c45 (patch)
tree5e75c41508dfa63f09bf8eba8f6c50e3a8856746 /src/lib.rs
parent28e2b1ca8577ab52a42fa0ab76dd28a04659fe5c (diff)
downloadfrippy-ee1e7dfae96af5a426176f396ca3a23706033c45.tar.gz
frippy-ee1e7dfae96af5a426176f396ca3a23706033c45.zip
Remove now redundant check
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index cda4e39..c556a32 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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) {