From 0e527a4252796c5f9615edc9412394bc4805e78a Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 30 Sep 2016 23:15:35 +0200 Subject: Fix slack channel join --- bridge/slack/slack.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bridge') diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 79b291b2..d0156ec8 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -70,9 +70,8 @@ func (b *Bslack) FullOrigin() string { func (b *Bslack) JoinChannel(channel string) error { // we can only join channels using the API if b.Config.UseAPI { - schannel := b.getChannelByName(channel) - if schannel != nil && !schannel.IsMember { - _, err := b.sc.JoinChannel(schannel.ID) + _, err := b.sc.JoinChannel(channel) + if err != nil { return err } } -- cgit v1.2.3