mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-15 08:29:25 +01:00
Ignore error on private channel join (slack) Fixes #150
This commit is contained in:
parent
4d2207aba7
commit
246c8e4f74
@ -79,7 +79,9 @@ func (b *Bslack) JoinChannel(channel string) error {
|
|||||||
}
|
}
|
||||||
_, err := b.sc.JoinChannel(channel)
|
_, err := b.sc.JoinChannel(channel)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
if err.Error() != "name_taken" {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user