summaryrefslogtreecommitdiffstats
path: root/bridge/config/config.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-11-24 23:27:13 +0100
committerWim <wim@42.be>2017-11-24 23:29:00 +0100
commite0cbb69a4fa14f5f38417b19904a8b412deb2458 (patch)
tree7d1029dbf4704f9454f2c71f52ea8262f8b05392 /bridge/config/config.go
parent7ec95f786d55aab69541cb3065ea2c9b8eaf9c43 (diff)
downloadmatterbridge-msglm-e0cbb69a4fa14f5f38417b19904a8b412deb2458.tar.gz
matterbridge-msglm-e0cbb69a4fa14f5f38417b19904a8b412deb2458.tar.bz2
matterbridge-msglm-e0cbb69a4fa14f5f38417b19904a8b412deb2458.zip
Add MessageSplit option to split messages on MessageLength (irc). Closes #281
Diffstat (limited to 'bridge/config/config.go')
-rw-r--r--bridge/config/config.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go
index 8a13b488..47e2a1d6 100644
--- a/bridge/config/config.go
+++ b/bridge/config/config.go
@@ -62,10 +62,11 @@ type Protocol struct {
Login string // mattermost, matrix
MediaServerDownload string
MediaServerUpload string
- MessageQueue int // IRC, size of message queue for flood control
MessageDelay int // IRC, time in millisecond to wait between messages
- MessageLength int // IRC, max length of a message allowed
MessageFormat string // telegram
+ MessageLength int // IRC, max length of a message allowed
+ MessageQueue int // IRC, size of message queue for flood control
+ MessageSplit bool // IRC, split long messages with newlines on MessageLength instead of clipping
Muc string // xmpp
Name string // all protocols
Nick string // all protocols