This commit is contained in:
Yash Karandikar 2022-01-19 15:58:53 -06:00
parent 588096b233
commit 15c6c0bda8

View file

@ -216,7 +216,7 @@ impl EventHandler for Handler {
content = content.replace('\n', " ");
content = content.replace("\r\n", " "); // just in case
let to_send = if content.len() > content_limit - 5 {
content.truncate(content_limit = 5);
content.truncate(content_limit - 5);
format!("> {}...", content)
} else {
format!("> {}", content)