summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-03-12 21:14:13 +0100
committerWim <wim@42.be>2018-03-12 21:14:13 +0100
commit8c0b04b9952e44860e86f5fbae6a9dc10190bd4c (patch)
treec759a240d2ea8e5154ea81fe3b8f2d76b13d04be
parente5989adf92cd5ea007b5e7d50580579f8581fee2 (diff)
downloadmatterbridge-msglm-8c0b04b9952e44860e86f5fbae6a9dc10190bd4c.tar.gz
matterbridge-msglm-8c0b04b9952e44860e86f5fbae6a9dc10190bd4c.tar.bz2
matterbridge-msglm-8c0b04b9952e44860e86f5fbae6a9dc10190bd4c.zip
Ignore restricted_acton on channel join (slack). Closes #387
-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
+ }
}
}
}