diff options
author | Qais Patankar <qaisjp@gmail.com> | 2020-03-22 13:16:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-22 14:16:31 +0100 |
commit | af0acf0daece8c4857513f3fea84a332709e8c55 (patch) | |
tree | 7aab8b1a3dbe7103fc1dc46996b5f25939a6b5a5 /bridge/discord/handlers.go | |
parent | 76e5fe5a87d7e60919075f96eee599f3c6255a9f (diff) | |
download | matterbridge-msglm-af0acf0daece8c4857513f3fea84a332709e8c55.tar.gz matterbridge-msglm-af0acf0daece8c4857513f3fea84a332709e8c55.tar.bz2 matterbridge-msglm-af0acf0daece8c4857513f3fea84a332709e8c55.zip |
Strip extra info from emotes (discord) (#1052)
Diffstat (limited to 'bridge/discord/handlers.go')
-rw-r--r-- | bridge/discord/handlers.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/discord/handlers.go b/bridge/discord/handlers.go index 1ce402c5..2bae3664 100644 --- a/bridge/discord/handlers.go +++ b/bridge/discord/handlers.go @@ -119,6 +119,9 @@ func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat rmsg.Event = config.EventUserAction } + // Replace emotes + rmsg.Text = replaceEmotes(rmsg.Text) + b.Log.Debugf("<= Sending message from %s on %s to gateway", m.Author.Username, b.Account) b.Log.Debugf("<= Message is %#v", rmsg) b.Remote <- rmsg |