From 50bd51e46196896ca11fcbabfe6494f062afa89b Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 2 Jan 2018 14:31:44 +0100 Subject: Use a better check to join channel (slack) --- bridge/slack/slack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/slack') 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 -- cgit v1.2.3