diff options
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/gateway.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go index 140bfc4d..b550430a 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -103,6 +103,15 @@ func (gw *Gateway) handleReceive() { } } } + if msg.Event == config.EVENT_REJOIN_CHANNELS { + for _, br := range gw.Bridges { + if msg.Account == br.Account { + br.Joined = make(map[string]bool) + br.JoinChannels() + } + } + continue + } if !gw.ignoreMessage(&msg) { msg.Timestamp = time.Now() for _, br := range gw.Bridges { |