diff options
author | Wim <wim@42.be> | 2017-08-12 14:51:41 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-08-12 14:51:41 +0200 |
commit | 28710d0bc7d5bd564d702953c490a865b0cc438d (patch) | |
tree | d025fe274779881442a1cf14d62ec2d42671cc3c /bridge/mattermost | |
parent | ad4d461606b5fb9b64377c8ef37110ee0b3c721b (diff) | |
download | matterbridge-msglm-28710d0bc7d5bd564d702953c490a865b0cc438d.tar.gz matterbridge-msglm-28710d0bc7d5bd564d702953c490a865b0cc438d.tar.bz2 matterbridge-msglm-28710d0bc7d5bd564d702953c490a865b0cc438d.zip |
Allow a webhookurl per channel (discord). #239
Diffstat (limited to 'bridge/mattermost')
-rw-r--r-- | bridge/mattermost/mattermost.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 7e3e7e2e..54a7efff 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -108,10 +108,10 @@ func (b *Bmattermost) Disconnect() error { return nil } -func (b *Bmattermost) JoinChannel(channel string) error { +func (b *Bmattermost) JoinChannel(channel config.ChannelInfo) error { // we can only join channels using the API if b.Config.WebhookURL == "" && b.Config.WebhookBindAddress == "" { - return b.mc.JoinChannel(b.mc.GetChannelId(channel, "")) + return b.mc.JoinChannel(b.mc.GetChannelId(channel.Name, "")) } return nil } |