From c86137449e733fc643337f33eaa33daf9e16d73c Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 27 May 2021 21:45:23 +0200 Subject: Add a MessageClipped option to set your own clipped message. Closes #1359 (#1487) --- bridge/mumble/mumble.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridge/mumble/mumble.go') 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 { -- cgit v1.2.3