From 8958cc616081e5dc0fd9abcda3fc5ca6bfac90ce Mon Sep 17 00:00:00 2001 From: Yash Karandikar Date: Wed, 26 Jan 2022 13:22:54 -0600 Subject: [PATCH] =?UTF-8?q?Fix=20build=20error=20=F0=9F=90=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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;