diff options
author | Wim <wim@42.be> | 2018-03-06 20:51:02 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-03-06 20:51:02 +0100 |
commit | 2133e0d1bed0bdc2ac10742c0bcf6b0b17a4d175 (patch) | |
tree | d5d0c6a67f60d3a16986e30e1ad8e032366972e7 /bridge | |
parent | a6f37f1d617b4a963337fd164706ebaecf69ea5b (diff) | |
download | matterbridge-msglm-2133e0d1bed0bdc2ac10742c0bcf6b0b17a4d175.tar.gz matterbridge-msglm-2133e0d1bed0bdc2ac10742c0bcf6b0b17a4d175.tar.bz2 matterbridge-msglm-2133e0d1bed0bdc2ac10742c0bcf6b0b17a4d175.zip |
Use default values part 2 (irc)
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/irc/irc.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 1c9ec90e..df1b7df7 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -42,12 +42,18 @@ func New(cfg *bridge.Config) bridge.Bridger { b.connected = make(chan struct{}) if b.GetInt("MessageDelay") == 0 { b.MessageDelay = 1300 + } else { + b.MessageDelay = b.GetInt("MessageDelay") } if b.GetInt("MessageQueue") == 0 { b.MessageQueue = 30 + } else { + b.MessageQueue = b.GetInt("MessageQueue") } if b.GetInt("MessageLength") == 0 { b.MessageLength = 400 + } else { + b.MessageLength = b.GetInt("MessageLength") } b.FirstConnection = true return b |