Don't send an empty CTCP SOURCE response

This commit is contained in:
jesopo 2019-05-18 22:51:55 +01:00
parent 67fcfb4e86
commit 9dbb04431a

View file

@ -550,8 +550,7 @@ impl ClientState {
self.send_ctcp_internal(
resp,
&format!("SOURCE {}", self.config().source()),
)?;
self.send_ctcp_internal(resp, "SOURCE")
)
} else if tokens[0].eq_ignore_ascii_case("PING") && tokens.len() > 1 {
self.send_ctcp_internal(resp, &format!("PING {}", tokens[1]))
} else if tokens[0].eq_ignore_ascii_case("TIME") {