From 54adb0509e8f22bdfa70a88834c6499e4078648b Mon Sep 17 00:00:00 2001 From: NikkyAI Date: Sat, 29 Sep 2018 20:02:59 +0200 Subject: Fix mentions cuttíng off all text after the mention (discord) (#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 -- cgit v1.2.3