diff options
author | Wim <wim@42.be> | 2017-04-17 18:01:24 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-04-17 18:01:24 +0200 |
commit | 246c8e4f74ab21e0abde1cae09e051a23bb1e6ae (patch) | |
tree | 4b8818f81f9be5c20203aea6a8253b8568124409 | |
parent | 4d2207aba7698fe5ed46c9ad5bc012ee93b68ef5 (diff) | |
download | matterbridge-msglm-246c8e4f74ab21e0abde1cae09e051a23bb1e6ae.tar.gz matterbridge-msglm-246c8e4f74ab21e0abde1cae09e051a23bb1e6ae.tar.bz2 matterbridge-msglm-246c8e4f74ab21e0abde1cae09e051a23bb1e6ae.zip |
Ignore error on private channel join (slack) Fixes #150
-rw-r--r-- | bridge/slack/slack.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 9c9f3fc3..cc03e9ed 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -79,7 +79,9 @@ func (b *Bslack) JoinChannel(channel string) error { } _, err := b.sc.JoinChannel(channel) if err != nil { - return err + if err.Error() != "name_taken" { + return err + } } } return nil |