summaryrefslogtreecommitdiffstats
path: root/bridge/bridge.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-08-15 21:11:50 +0200
committerWim <wim@42.be>2016-08-15 21:11:50 +0200
commit96e21dd0511cd08ca2d9581a5c7299e91a2ea984 (patch)
treec84aa50a2b635b6dc7ec37d4f5460a78ce2ec667 /bridge/bridge.go
parent32e5f396e75927f10623ecdf8446a070506385eb (diff)
downloadmatterbridge-msglm-96e21dd0511cd08ca2d9581a5c7299e91a2ea984.tar.gz
matterbridge-msglm-96e21dd0511cd08ca2d9581a5c7299e91a2ea984.tar.bz2
matterbridge-msglm-96e21dd0511cd08ca2d9581a5c7299e91a2ea984.zip
Add documentation about breaking API changes for mattermost 3.3.0. Start work on 0.6.0-dev
Diffstat (limited to 'bridge/bridge.go')
-rw-r--r--bridge/bridge.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/bridge.go b/bridge/bridge.go
index 898014e7..8fe233d6 100644
--- a/bridge/bridge.go
+++ b/bridge/bridge.go
@@ -41,7 +41,7 @@ func initFLog() {
flog.xmpp = log.WithFields(log.Fields{"module": "xmpp"})
}
-func NewBridge(name string, cfg *config.Config, kind string) *Bridge {
+func NewBridge(cfg *config.Config) error {
c := make(chan config.Message)
initFLog()
b := &Bridge{}
@@ -57,8 +57,8 @@ func NewBridge(name string, cfg *config.Config, kind string) *Bridge {
}
b.mapChannels()
b.mapIgnores()
- go b.handleReceive(c)
- return b
+ b.handleReceive(c)
+ return nil
}
func (b *Bridge) handleReceive(c chan config.Message) {