Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit bf4a7fcd4307e21e3ff0805224beecb8ac156077 Author: NikkyAI <NikkyAI@users.noreply.github.com> Date: Sat Sep 29 20:02:59 2018 +0000 Fix mentions cuttíng off all text after the mention (discord) (#506) diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index 9d7e2d6..116bf86 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -4237 +4237 @@ 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