From 0bcc7c0923852b48ebbb94ceeecc98f551fa920d Mon Sep 17 00:00:00 2001 From: Jokler Date: Fri, 2 Mar 2018 17:31:29 +0100 Subject: Add accidentally removed errors --- src/plugins/tell/mod.rs | 4 ++-- 1 file 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 Tell { 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)); } } } -- cgit v1.2.3-70-g09d2