diff options
author | Wim <wim@42.be> | 2018-01-02 14:31:44 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-01-09 00:03:29 +0100 |
commit | f8329d8c77b26fa37b1137b55d57ed610850af73 (patch) | |
tree | 7bdfc0e1bbc76ce227503c07e936fc983eda3ab5 /bridge | |
parent | ecf5669e808bdee95bf1059297f9e72eccf610e3 (diff) | |
download | matterbridge-msglm-f8329d8c77b26fa37b1137b55d57ed610850af73.tar.gz matterbridge-msglm-f8329d8c77b26fa37b1137b55d57ed610850af73.tar.bz2 matterbridge-msglm-f8329d8c77b26fa37b1137b55d57ed610850af73.zip |
Use a better check to join channel (slack)
Diffstat (limited to 'bridge')
-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 |