summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-01-02 14:31:44 +0100
committerWim <wim@42.be>2018-01-09 00:03:29 +0100
commitf8329d8c77b26fa37b1137b55d57ed610850af73 (patch)
tree7bdfc0e1bbc76ce227503c07e936fc983eda3ab5
parentecf5669e808bdee95bf1059297f9e72eccf610e3 (diff)
downloadmatterbridge-msglm-f8329d8c77b26fa37b1137b55d57ed610850af73.tar.gz
matterbridge-msglm-f8329d8c77b26fa37b1137b55d57ed610850af73.tar.bz2
matterbridge-msglm-f8329d8c77b26fa37b1137b55d57ed610850af73.zip
Use a better check to join channel (slack)
-rw-r--r--bridge/slack/slack.go2
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