From 28710d0bc7d5bd564d702953c490a865b0cc438d Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 12 Aug 2017 14:51:41 +0200 Subject: Allow a webhookurl per channel (discord). #239 --- bridge/gitter/gitter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bridge/gitter') 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 { -- cgit v1.2.3