diff --git a/src/main.rs b/src/main.rs index fed3760..b508ff0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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::>() - .join(' ') + .join(" ") ); let reply_nick_bytes = reply_nick.len() + 3; let reply_content_limit = 510 - reply_nick_bytes - 11;