2
0
mirror of https://github.com/42wim/matterbridge synced 2024-11-19 03:25:33 +00:00

Fix mentions cuttíng off all text after the mention (discord) (#506)

This commit is contained in:
NikkyAI 2018-09-29 20:02:59 +02:00 committed by Wim
parent bd3a3b6eaf
commit 54adb0509e

View File

@ -423,7 +423,7 @@ func (b *Bdiscord) replaceUserMentions(text string) string {
if err != nil { if err != nil {
return m return m
} }
return member.User.Mention() return strings.Replace(m, "@"+mention, member.User.Mention(), -1)
}) })
b.Log.Debugf("Message with mention replaced: %s", text) b.Log.Debugf("Message with mention replaced: %s", text)
return text return text