summaryrefslogtreecommitdiffstats
path: root/bridge/mumble/mumble.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/mumble/mumble.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/mumble/mumble.go')
-rw-r--r--bridge/mumble/mumble.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/mumble/mumble.go b/bridge/mumble/mumble.go
index 2281d1c2..d678e0fb 100644
--- a/bridge/mumble/mumble.go
+++ b/bridge/mumble/mumble.go
@@ -248,9 +248,9 @@ func (b *Bmumble) processMessage(msg *config.Message) {
// If there is a maximum message length, split and truncate the lines
var msgLines []string
if maxLength := b.serverConfig.MaximumMessageLength; maxLength != nil {
- msgLines = helper.GetSubLines(msg.Text, *maxLength-len(msg.Username))
+ msgLines = helper.GetSubLines(msg.Text, *maxLength-len(msg.Username), b.GetString("MessageClipped"))
} else {
- msgLines = helper.GetSubLines(msg.Text, 0)
+ msgLines = helper.GetSubLines(msg.Text, 0, b.GetString("MessageClipped"))
}
// Send the individual lindes
for i := range msgLines {