Ignore restricted_acton on channel join (slack). Closes #387

This commit is contained in:
Wim 2018-03-12 21:14:13 +01:00
parent e5989adf92
commit 8c0b04b995
1 changed files with 6 additions and 2 deletions

View File

@ -103,11 +103,15 @@ func (b *Bslack) JoinChannel(channel config.ChannelInfo) error {
} }
_, err := b.sc.JoinChannel(channel.Name) _, err := b.sc.JoinChannel(channel.Name)
if err != nil { if err != nil {
if err.Error() != "name_taken" { switch err.Error() {
case "name_taken", "restricted_action":
case "default":
{
return err return err
} }
} }
} }
}
return nil return nil
} }