Removed unnecessary parentheses.

This commit is contained in:
Aaron Weiss 2016-04-11 23:00:50 -04:00
parent 8838417d6f
commit e450621a57
No known key found for this signature in database
GPG key ID: 0237035D9BF03AE2

View file

@ -399,7 +399,7 @@ impl IrcServer {
/// Handles CTCP requests if the CTCP feature is enabled.
#[cfg(feature = "ctcp")]
fn handle_ctcp(&self, resp: &str, tokens: Vec<&str>) -> Result<()> {
if (tokens.len() == 0) { return Ok(()) }
if tokens.len() == 0 { return Ok(()) }
match tokens[0] {
"FINGER" => self.send_ctcp_internal(resp, &format!(
"FINGER :{} ({})", self.config().real_name(), self.config().username()