summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gateway/router.go4
1 files changed, 4 insertions, 0 deletions
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)