summaryrefslogtreecommitdiffstats
path: root/bridge/slack/slack.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2021-05-27 21:45:23 +0200
committerGitHub <noreply@github.com>2021-05-27 21:45:23 +0200
commitc86137449e733fc643337f33eaa33daf9e16d73c (patch)
tree711cbfd7f64edfbf1780285b0f177afc2b3c472b /bridge/slack/slack.go
parentefec01a92f3d7c3aec3ada8bf873d728e349eee6 (diff)
downloadmatterbridge-msglm-c86137449e733fc643337f33eaa33daf9e16d73c.tar.gz
matterbridge-msglm-c86137449e733fc643337f33eaa33daf9e16d73c.tar.bz2
matterbridge-msglm-c86137449e733fc643337f33eaa33daf9e16d73c.zip
Add a MessageClipped option to set your own clipped message. Closes #1359 (#1487)
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r--bridge/slack/slack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index 37ddd853..457312cd 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -195,7 +195,7 @@ func (b *Bslack) Send(msg config.Message) (string, error) {
b.Log.Debugf("=> Receiving %#v", msg)
}
- msg.Text = helper.ClipMessage(msg.Text, messageLength)
+ msg.Text = helper.ClipMessage(msg.Text, messageLength, b.GetString("MessageClipped"))
msg.Text = b.replaceCodeFence(msg.Text)
// Make a action /me of the message