From c30ffeb81e00a0629895a74d411c4fe32bc7311e Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 18 Mar 2017 21:17:21 +0100 Subject: Fix roomid bug (gitter) --- bridge/gitter/gitter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bridge') diff --git a/bridge/gitter/gitter.go b/bridge/gitter/gitter.go index b5beac40..af71d892 100644 --- a/bridge/gitter/gitter.go +++ b/bridge/gitter/gitter.go @@ -58,8 +58,9 @@ func (b *Bgitter) JoinChannel(channel string) error { } room, err := b.c.GetRoom(roomID) if err != nil { - b.Rooms = append(b.Rooms, *room) + return err } + b.Rooms = append(b.Rooms, *room) user, err := b.c.GetUser() if err != nil { return err -- cgit v1.2.3