From 8c0b04b9952e44860e86f5fbae6a9dc10190bd4c Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 12 Mar 2018 21:14:13 +0100 Subject: Ignore restricted_acton on channel join (slack). Closes #387 --- bridge/slack/slack.go | 8 ++++++-- 1 file 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 + } } } } -- cgit v1.2.3