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/gitter | |
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/gitter')
-rw-r--r-- | bridge/gitter/gitter.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/gitter/gitter.go b/bridge/gitter/gitter.go index 0b8667ea..f234b6bb 100644 --- a/bridge/gitter/gitter.go +++ b/bridge/gitter/gitter.go @@ -51,10 +51,10 @@ func (b *Bgitter) Disconnect() error { } -func (b *Bgitter) JoinChannel(channel string) error { - roomID, err := b.c.GetRoomId(channel) +func (b *Bgitter) JoinChannel(channel config.ChannelInfo) error { + roomID, err := b.c.GetRoomId(channel.Name) if err != nil { - return fmt.Errorf("Could not find roomID for %v. Please create the room on gitter.im", channel) + return fmt.Errorf("Could not find roomID for %v. Please create the room on gitter.im", channel.Name) } room, err := b.c.GetRoom(roomID) if err != nil { |