Add support for outgoing webhook token

This commit is contained in:
Wim
2015-10-24 18:01:15 +02:00
parent 25d72a7e31
commit 6feccd4c6c
5 changed files with 17 additions and 2 deletions

View File

@@ -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