forked from karx/dircord
Fix build error 🐸
This commit is contained in:
parent
f8d5233074
commit
8958cc6160
|
@ -310,12 +310,13 @@ impl EventHandler for Handler {
|
||||||
content = content.replace('\n', " ");
|
content = content.replace('\n', " ");
|
||||||
content = content.replace("\r\n", " "); // just in case
|
content = content.replace("\r\n", " "); // just in case
|
||||||
content = format!(
|
content = format!(
|
||||||
"{} ",
|
"{} {}",
|
||||||
msg.attachments
|
content,
|
||||||
|
reply.attachments
|
||||||
.iter()
|
.iter()
|
||||||
.map(|a| a.url.clone())
|
.map(|a| a.url.clone())
|
||||||
.collect::<Vec<String>>()
|
.collect::<Vec<String>>()
|
||||||
.join(' ')
|
.join(" ")
|
||||||
);
|
);
|
||||||
let reply_nick_bytes = reply_nick.len() + 3;
|
let reply_nick_bytes = reply_nick.len() + 3;
|
||||||
let reply_content_limit = 510 - reply_nick_bytes - 11;
|
let reply_content_limit = 510 - reply_nick_bytes - 11;
|
||||||
|
|
Loading…
Reference in a new issue