Fix build error 🐸

This commit is contained in:
Yash Karandikar 2022-01-26 13:22:54 -06:00
parent f8d5233074
commit 8958cc6160

View file

@ -310,12 +310,13 @@ impl EventHandler for Handler {
content = content.replace('\n', " ");
content = content.replace("\r\n", " "); // just in case
content = format!(
"{} ",
msg.attachments
"{} {}",
content,
reply.attachments
.iter()
.map(|a| a.url.clone())
.collect::<Vec<String>>()
.join(' ')
.join(" ")
);
let reply_nick_bytes = reply_nick.len() + 3;
let reply_content_limit = 510 - reply_nick_bytes - 11;