From 707db950c83e7fe2578ec206c6eeb330cc2f5f5b Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 24 Jan 2019 22:46:05 +0100 Subject: Send GetChannelMembers event only to slack for now --- gateway/router.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gateway/router.go b/gateway/router.go index d3c33b2a..8458f715 100644 --- a/gateway/router.go +++ b/gateway/router.go @@ -142,6 +142,10 @@ func (r *Router) updateChannelMembers() { for { for _, gw := range r.Gateways { for _, br := range gw.Bridges { + // only for slack now + if br.Protocol != "slack" { + continue + } flog.Debugf("sending %s to %s", config.EventGetChannelMembers, br.Account) if _, err := br.Send(config.Message{Event: config.EventGetChannelMembers}); err != nil { flog.Errorf("updateChannelMembers: %s", err) -- cgit v1.2.3