diff options
author | Wim <wim@42.be> | 2015-10-24 18:01:15 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2015-10-24 18:05:10 +0200 |
commit | 6feccd4c6cae08c7c6a4f283822565785428b2e0 (patch) | |
tree | f5d4b8f2fda0e16065eb07ac5f300d7dc0e9e1c4 /matterbridge.go | |
parent | 25d72a7e31a0d077546639f3de25d75ebb4efa14 (diff) | |
download | matterbridge-msglm-6feccd4c6cae08c7c6a4f283822565785428b2e0.tar.gz matterbridge-msglm-6feccd4c6cae08c7c6a4f283822565785428b2e0.tar.bz2 matterbridge-msglm-6feccd4c6cae08c7c6a4f283822565785428b2e0.zip |
Add support for outgoing webhook token
Diffstat (limited to 'matterbridge.go')
-rw-r--r-- | matterbridge.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/matterbridge.go b/matterbridge.go index afad75af..219f062e 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -19,7 +19,8 @@ type Bridge struct { func NewBridge(name string, config *Config) *Bridge { b := &Bridge{} b.Config = config - b.m = matterhook.New(b.Config.Mattermost.URL, matterhook.Config{Port: b.Config.Mattermost.Port}) + b.m = matterhook.New(b.Config.Mattermost.URL, + matterhook.Config{Port: b.Config.Mattermost.Port, Token: b.Config.Mattermost.Token}) b.i = b.createIRC(name) go b.handleMatter() return b |