Skip to content

Commit

Permalink
Ignore restricted_acton on channel join (slack). Closes #387
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed Mar 12, 2018
1 parent e5989ad commit 8c0b04b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bridge/slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,12 @@ func (b *Bslack) JoinChannel(channel config.ChannelInfo) error {
}
_, err := b.sc.JoinChannel(channel.Name)
if err != nil {
if err.Error() != "name_taken" {
return err
switch err.Error() {
case "name_taken", "restricted_action":
case "default":
{
return err
}
}
}
}
Expand Down

0 comments on commit 8c0b04b

Please sign in to comment.