diff options
author | Wim <wim@42.be> | 2017-02-20 00:49:27 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-02-20 00:50:37 +0100 |
commit | c5cfbc22972c397805c8385840d6cfd0de307c87 (patch) | |
tree | 336b2676a878092cb421ca17590db40c5da86a23 /bridge/bridge.go | |
parent | cd0a2beb11efb4f03fa9fab38b93391b346864e9 (diff) | |
download | matterbridge-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.go | 4 |
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) |