diff options
author | Wim <wim@42.be> | 2016-08-14 21:48:51 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-08-14 22:44:59 +0200 |
commit | ff9479670070c0f1de4cf66622df7b69736dd22a (patch) | |
tree | c3003f19d8821900398b5b2803188555725030b6 /matterbridge.go | |
parent | 1f72ca4c4ecb5ab3ef831b8e70c74909f5720fb8 (diff) | |
download | matterbridge-msglm-ff9479670070c0f1de4cf66622df7b69736dd22a.tar.gz matterbridge-msglm-ff9479670070c0f1de4cf66622df7b69736dd22a.tar.bz2 matterbridge-msglm-ff9479670070c0f1de4cf66622df7b69736dd22a.zip |
Refactor bridge. Allows bridging between every protocol
Diffstat (limited to 'matterbridge.go')
-rw-r--r-- | matterbridge.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/matterbridge.go b/matterbridge.go index 4d2c4c06..689a08df 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -4,6 +4,7 @@ import ( "flag" "fmt" "github.com/42wim/matterbridge/bridge" + "github.com/42wim/matterbridge/bridge/config" log "github.com/Sirupsen/logrus" ) @@ -30,9 +31,9 @@ func main() { } fmt.Println("running version", version) if *flagPlus { - bridge.NewBridge("matterbot", bridge.NewConfig(*flagConfig), "") + bridge.NewBridge("matterbot", config.NewConfig(*flagConfig), "") } else { - bridge.NewBridge("matterbot", bridge.NewConfig(*flagConfig), "legacy") + bridge.NewBridge("matterbot", config.NewConfig(*flagConfig), "legacy") } select {} } |