summaryrefslogtreecommitdiffstats
path: root/bridge/bridge.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-02-20 00:49:27 +0100
committerWim <wim@42.be>2017-02-20 00:50:37 +0100
commitc5cfbc22972c397805c8385840d6cfd0de307c87 (patch)
tree336b2676a878092cb421ca17590db40c5da86a23 /bridge/bridge.go
parentcd0a2beb11efb4f03fa9fab38b93391b346864e9 (diff)
downloadmatterbridge-msglm-c5cfbc22972c397805c8385840d6cfd0de307c87.tar.gz
matterbridge-msglm-c5cfbc22972c397805c8385840d6cfd0de307c87.tar.bz2
matterbridge-msglm-c5cfbc22972c397805c8385840d6cfd0de307c87.zip
Add matrix support
Diffstat (limited to 'bridge/bridge.go')
-rw-r--r--bridge/bridge.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/bridge.go b/bridge/bridge.go
index 012b0efd..312792b6 100644
--- a/bridge/bridge.go
+++ b/bridge/bridge.go
@@ -6,6 +6,7 @@ import (
"github.com/42wim/matterbridge/bridge/discord"
"github.com/42wim/matterbridge/bridge/gitter"
"github.com/42wim/matterbridge/bridge/irc"
+ "github.com/42wim/matterbridge/bridge/matrix"
"github.com/42wim/matterbridge/bridge/mattermost"
"github.com/42wim/matterbridge/bridge/rocketchat"
"github.com/42wim/matterbridge/bridge/slack"
@@ -71,6 +72,9 @@ func New(cfg *config.Config, bridge *config.Bridge, c chan config.Message) *Brid
case "rocketchat":
b.Config = cfg.Rocketchat[name]
b.Bridger = brocketchat.New(cfg.Rocketchat[name], bridge.Account, c)
+ case "matrix":
+ b.Config = cfg.Matrix[name]
+ b.Bridger = bmatrix.New(cfg.Matrix[name], bridge.Account, c)
case "api":
b.Config = cfg.Api[name]
b.Bridger = api.New(cfg.Api[name], bridge.Account, c)