5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-24 18:25:40 +00:00

Fix regression (discord). Closes #864 (#866)

This commit is contained in:
Wim 2019-07-29 23:37:38 +02:00 committed by GitHub
parent ff27746c0c
commit 79a006c8de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ func (b *Bdiscord) stripCustomoji(text string) string {
func (b *Bdiscord) replaceAction(text string) (string, bool) {
if strings.HasPrefix(text, "_") && strings.HasSuffix(text, "_") {
return text[1:], true
return text[1 : len(text)-1], true
}
return text, false
}