summaryrefslogtreecommitdiffstats
path: root/bridge/discord
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/discord')
-rw-r--r--bridge/discord/helpers.go2
1 files changed, 1 insertions, 1 deletions
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
}