summaryrefslogtreecommitdiffstats
path: root/bridge/gitter
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/gitter')
-rw-r--r--bridge/gitter/gitter.go6
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 {