summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-01-02 14:31:44 +0100
committerWim <wim@42.be>2018-01-02 14:31:44 +0100
commit50bd51e46196896ca11fcbabfe6494f062afa89b (patch)
tree22af1120859035e2dfe6c655a3d64f11227f8e8a /bridge
parent04f801331488b41a0e1d89fa6443b1dda4625260 (diff)
downloadmatterbridge-msglm-50bd51e46196896ca11fcbabfe6494f062afa89b.tar.gz
matterbridge-msglm-50bd51e46196896ca11fcbabfe6494f062afa89b.tar.bz2
matterbridge-msglm-50bd51e46196896ca11fcbabfe6494f062afa89b.zip
Use a better check to join channel (slack)
Diffstat (limited to 'bridge')
-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