diff options
-rw-r--r-- | bridge/slack/slack.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 51fe698d..c008ba5b 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -107,7 +107,7 @@ func (b *Bslack) Disconnect() error { func (b *Bslack) JoinChannel(channel config.ChannelInfo) error { // we can only join channels using the API - if b.Config.WebhookURL == "" && b.Config.WebhookBindAddress == "" { + if b.sc != nil { if strings.HasPrefix(b.Config.Token, "xoxb") { // TODO check if bot has already joined channel return nil |