diff options
author | Wim <wim@42.be> | 2017-03-18 21:17:21 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-03-18 21:17:21 +0100 |
commit | c30ffeb81e00a0629895a74d411c4fe32bc7311e (patch) | |
tree | dccc1a3ad7eaf04797d0c62c3c10bd199f43711d | |
parent | e05a323afd36986ff5153988545cae7d6e1d1205 (diff) | |
download | matterbridge-msglm-c30ffeb81e00a0629895a74d411c4fe32bc7311e.tar.gz matterbridge-msglm-c30ffeb81e00a0629895a74d411c4fe32bc7311e.tar.bz2 matterbridge-msglm-c30ffeb81e00a0629895a74d411c4fe32bc7311e.zip |
Fix roomid bug (gitter)
-rw-r--r-- | bridge/gitter/gitter.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 |