summaryrefslogtreecommitdiffstats
path: root/gateway
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-11-17 23:01:03 +0100
committerGitHub <noreply@github.com>2019-11-17 23:01:03 +0100
commit075ca9ca471a7bfaf86fd0a762ed38b8cbf4edfb (patch)
tree4b402b7c48e1d54ebdc8706a5f996aafab581a3f /gateway
parentd4253d7a55f7af862304fb65c461547055dd294a (diff)
downloadmatterbridge-msglm-075ca9ca471a7bfaf86fd0a762ed38b8cbf4edfb.tar.gz
matterbridge-msglm-075ca9ca471a7bfaf86fd0a762ed38b8cbf4edfb.tar.bz2
matterbridge-msglm-075ca9ca471a7bfaf86fd0a762ed38b8cbf4edfb.zip
Switch to new emoji library kyokomi/emoji (#948)
Diffstat (limited to 'gateway')
-rw-r--r--gateway/gateway.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index af8aecd8..b74a3aaa 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -13,7 +13,7 @@ import (
"github.com/d5/tengo/script"
"github.com/d5/tengo/stdlib"
lru "github.com/hashicorp/golang-lru"
- "github.com/peterhellberg/emojilib"
+ "github.com/matterbridge/emoji"
"github.com/sirupsen/logrus"
)
@@ -372,7 +372,7 @@ func (gw *Gateway) modifyMessage(msg *config.Message) {
}
// replace :emoji: to unicode
- msg.Text = emojilib.Replace(msg.Text)
+ msg.Text = emoji.Sprint(msg.Text)
br := gw.Bridges[msg.Account]
// loop to replace messages