From 54adb0509e8f22bdfa70a88834c6499e4078648b Mon Sep 17 00:00:00 2001 From: NikkyAI Date: Sat, 29 Sep 2018 20:02:59 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20mentions=20cutt=C3=ADng=20off=20all=20tex?= =?UTF-8?q?t=20after=20the=20mention=20(discord)=20(#506)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bridge/discord/discord.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index 9d7e2d69..116bf86d 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -423,7 +423,7 @@ func (b *Bdiscord) replaceUserMentions(text string) string { if err != nil { return m } - return member.User.Mention() + return strings.Replace(m, "@"+mention, member.User.Mention(), -1) }) b.Log.Debugf("Message with mention replaced: %s", text) return text