5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-26 03:11:37 +00:00

Fix role replace

This commit is contained in:
Wim 2018-02-14 23:05:16 +01:00
parent fd0fe3390b
commit 6f78485878

View File

@ -237,7 +237,7 @@ func (m *Message) ContentWithMoreMentionsReplaced(s *Session) (content string, e
continue
}
content = strings.Replace(content, "<&"+role.ID+">", "@"+role.Name, -1)
content = strings.Replace(content, "<@&"+role.ID+">", "@"+role.Name, -1)
}
content = patternChannels.ReplaceAllStringFunc(content, func(mention string) string {