summaryrefslogtreecommitdiffstats
path: root/bridge/irc/irc.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-03-06 20:51:02 +0100
committerWim <wim@42.be>2018-03-06 20:51:02 +0100
commit2133e0d1bed0bdc2ac10742c0bcf6b0b17a4d175 (patch)
treed5d0c6a67f60d3a16986e30e1ad8e032366972e7 /bridge/irc/irc.go
parenta6f37f1d617b4a963337fd164706ebaecf69ea5b (diff)
downloadmatterbridge-msglm-2133e0d1bed0bdc2ac10742c0bcf6b0b17a4d175.tar.gz
matterbridge-msglm-2133e0d1bed0bdc2ac10742c0bcf6b0b17a4d175.tar.bz2
matterbridge-msglm-2133e0d1bed0bdc2ac10742c0bcf6b0b17a4d175.zip
Use default values part 2 (irc)
Diffstat (limited to 'bridge/irc/irc.go')
-rw-r--r--bridge/irc/irc.go6
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