summaryrefslogtreecommitdiffstats
path: root/bridge/discord/discord.go
diff options
context:
space:
mode:
authorNikkyAI <NikkyAI@users.noreply.github.com>2018-09-29 20:02:59 +0200
committerWim <wim@42.be>2018-09-29 20:02:59 +0200
commit54adb0509e8f22bdfa70a88834c6499e4078648b (patch)
tree10643471c31848da6ecbdb24d0070560b38cbabd /bridge/discord/discord.go
parentbd3a3b6eaf061a6352f858c983bd0a8d14118252 (diff)
downloadmatterbridge-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/discord/discord.go')
-rw-r--r--bridge/discord/discord.go2
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