summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-07-29 23:37:38 +0200
committerGitHub <noreply@github.com>2019-07-29 23:37:38 +0200
commit79a006c8de311a7bbab540e62bd3fac998d415d5 (patch)
tree6652b2f22ed9dc96c2fd03b57304d5ac79df11b6 /bridge
parentff27746c0ce54fe9fa38d30aa3a6eab4385e6555 (diff)
downloadmatterbridge-msglm-79a006c8de311a7bbab540e62bd3fac998d415d5.tar.gz
matterbridge-msglm-79a006c8de311a7bbab540e62bd3fac998d415d5.tar.bz2
matterbridge-msglm-79a006c8de311a7bbab540e62bd3fac998d415d5.zip
Fix regression (discord). Closes #864 (#866)
Diffstat (limited to 'bridge')
-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
}