Separate attachments in reply with a space
This commit is contained in:
parent
4e10398d62
commit
121f3da671
|
@ -155,15 +155,8 @@ impl EventHandler for Handler {
|
||||||
let mut content = reply.content;
|
let mut content = reply.content;
|
||||||
content = content.replace("\r\n", " "); // just in case
|
content = content.replace("\r\n", " "); // just in case
|
||||||
content = content.replace('\n', " ");
|
content = content.replace('\n', " ");
|
||||||
content = format!(
|
let atts: Vec<&str> = reply.attachments.iter().map(|a| &*a.url).collect();
|
||||||
"{} {}",
|
content = format!("{} {}", content, atts.join(" "));
|
||||||
content,
|
|
||||||
reply
|
|
||||||
.attachments
|
|
||||||
.iter()
|
|
||||||
.map(|a| &*a.url)
|
|
||||||
.collect::<String>()
|
|
||||||
);
|
|
||||||
|
|
||||||
content = discord_to_irc_processing(&content, &**members_lock, &ctx, &roles).await;
|
content = discord_to_irc_processing(&content, &**members_lock, &ctx, &roles).await;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue