summaryrefslogtreecommitdiffstats
path: root/bridge/slack
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/slack')
-rw-r--r--bridge/slack/slack.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index 7912988e..1e1a1b7f 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -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
+ }
}
}
}