4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-02 15:06:17 +00:00

Fix #668 strip lang in code fences sent to Slack (#673)

This commit is contained in:
Qais Patankar
2019-01-04 19:32:58 +00:00
committed by Wim
parent bab385c342
commit 8522d8f29c
2 changed files with 7 additions and 0 deletions

View File

@ -188,6 +188,8 @@ func (b *Bslack) Send(msg config.Message) (string, error) {
b.Log.Debugf("=> Receiving %#v", msg)
}
msg.Text = b.replaceCodeFence(msg.Text)
// Make a action /me of the message
if msg.Event == config.EventUserAction {
msg.Text = "_" + msg.Text + "_"