diff options
| author | Jokler <jokler.contact@gmail.com> | 2018-03-02 17:31:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-02 17:31:29 +0100 |
| commit | 0bcc7c0923852b48ebbb94ceeecc98f551fa920d (patch) | |
| tree | f3c825308c10f055b74a80415e5b1fa691ec2d27 | |
| parent | d8406b107c651321c9e166abc36fc66730d965a1 (diff) | |
| download | frippy-0bcc7c0923852b48ebbb94ceeecc98f551fa920d.tar.gz frippy-0bcc7c0923852b48ebbb94ceeecc98f551fa920d.zip | |
Add accidentally removed errors
| -rw-r--r-- | src/plugins/tell/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/tell/mod.rs b/src/plugins/tell/mod.rs index a2c49f2..3a8feeb 100644 --- a/src/plugins/tell/mod.rs +++ b/src/plugins/tell/mod.rs @@ -43,13 +43,13 @@ impl<T: Database> Tell<T> { let sender = command.source.to_owned(); if receiver == sender { - //return Err(String::from("That's your name!")); + return Err(String::from("That's your name!")); } if command.source != command.target { if let Some(users) = client.list_users(&command.target) { if users.iter().any(|u| u.get_nickname() == receiver) { - //return Err(format!("{} is in this channel.", receiver)); + return Err(format!("{} is in this channel.", receiver)); } } } |
