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:
parent
bd3a3b6eaf
commit
54adb0509e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user