diff options
author | Wim <wim@42.be> | 2019-01-24 22:46:05 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2019-01-24 22:46:05 +0100 |
commit | 707db950c83e7fe2578ec206c6eeb330cc2f5f5b (patch) | |
tree | 13c9a2fb3d950ffa13ea943ecdd4da5350d1e72c /gateway | |
parent | 94812d86487ecd21a2aa4e52574297a61b615c71 (diff) | |
download | matterbridge-msglm-707db950c83e7fe2578ec206c6eeb330cc2f5f5b.tar.gz matterbridge-msglm-707db950c83e7fe2578ec206c6eeb330cc2f5f5b.tar.bz2 matterbridge-msglm-707db950c83e7fe2578ec206c6eeb330cc2f5f5b.zip |
Send GetChannelMembers event only to slack for now
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/router.go | 4 |
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) |