diff options
author | NikkyAI <NikkyAI@users.noreply.github.com> | 2018-09-29 20:02:59 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2018-09-29 20:02:59 +0200 |
commit | 54adb0509e8f22bdfa70a88834c6499e4078648b (patch) | |
tree | 10643471c31848da6ecbdb24d0070560b38cbabd /bridge | |
parent | bd3a3b6eaf061a6352f858c983bd0a8d14118252 (diff) | |
download | matterbridge-msglm-54adb0509e8f22bdfa70a88834c6499e4078648b.tar.gz matterbridge-msglm-54adb0509e8f22bdfa70a88834c6499e4078648b.tar.bz2 matterbridge-msglm-54adb0509e8f22bdfa70a88834c6499e4078648b.zip |
Fix mentions cuttíng off all text after the mention (discord) (#506)
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/discord/discord.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |