mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 07:00:27 +00:00
Fix mentions cuttíng off all text after the mention (discord) (#506)
This commit is contained in:
parent
bd3a3b6eaf
commit
54adb0509e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user