From 79a006c8de311a7bbab540e62bd3fac998d415d5 Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 29 Jul 2019 23:37:38 +0200 Subject: Fix regression (discord). Closes #864 (#866) --- bridge/discord/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/discord/helpers.go b/bridge/discord/helpers.go index cf12c952..58676842 100644 --- a/bridge/discord/helpers.go +++ b/bridge/discord/helpers.go @@ -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 } -- cgit v1.2.3