diff options
author | Wim <wim@42.be> | 2016-08-15 23:16:07 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-08-20 18:08:57 +0200 |
commit | 889b6debc4f339975076668b6ab7d85f7dd08922 (patch) | |
tree | 04ca8ee5be4ecb7f87f28e46e81045a9df1d3b25 /bridge/bridge.go | |
parent | 9cb3413d9c79730fc3b61bfdef6b2c9a2003a383 (diff) | |
download | matterbridge-msglm-889b6debc4f339975076668b6ab7d85f7dd08922.tar.gz matterbridge-msglm-889b6debc4f339975076668b6ab7d85f7dd08922.tar.bz2 matterbridge-msglm-889b6debc4f339975076668b6ab7d85f7dd08922.zip |
Add Connect() to Bridger interface
Diffstat (limited to 'bridge/bridge.go')
-rw-r--r-- | bridge/bridge.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/bridge.go b/bridge/bridge.go index a849ba67..2a9ea7c7 100644 --- a/bridge/bridge.go +++ b/bridge/bridge.go @@ -41,6 +41,9 @@ func NewBridge(cfg *config.Config) error { if len(b.Bridges) < 2 { log.Fatalf("only %d sections enabled. Need at least 2 sections enabled (eg [IRC] and [mattermost]", len(b.Bridges)) } + for _, br := range b.Bridges { + br.Connect() + } b.mapChannels() b.mapIgnores() b.handleReceive(c) |