summaryrefslogtreecommitdiffstats
path: root/bridge/gitter
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-03-18 21:17:21 +0100
committerWim <wim@42.be>2017-03-18 21:17:21 +0100
commitc30ffeb81e00a0629895a74d411c4fe32bc7311e (patch)
treedccc1a3ad7eaf04797d0c62c3c10bd199f43711d /bridge/gitter
parente05a323afd36986ff5153988545cae7d6e1d1205 (diff)
downloadmatterbridge-msglm-c30ffeb81e00a0629895a74d411c4fe32bc7311e.tar.gz
matterbridge-msglm-c30ffeb81e00a0629895a74d411c4fe32bc7311e.tar.bz2
matterbridge-msglm-c30ffeb81e00a0629895a74d411c4fe32bc7311e.zip
Fix roomid bug (gitter)
Diffstat (limited to 'bridge/gitter')
-rw-r--r--bridge/gitter/gitter.go3
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