diff options
author | Wim <wim@42.be> | 2021-05-27 21:45:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 21:45:23 +0200 |
commit | c86137449e733fc643337f33eaa33daf9e16d73c (patch) | |
tree | 711cbfd7f64edfbf1780285b0f177afc2b3c472b /bridge/mumble | |
parent | efec01a92f3d7c3aec3ada8bf873d728e349eee6 (diff) | |
download | matterbridge-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')
-rw-r--r-- | bridge/mumble/mumble.go | 4 |
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 { |