4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 07:29:24 +00:00

Rejoin channel when kicked (irc). Closes #146

This commit is contained in:
Wim
2017-04-08 00:42:37 +02:00
parent eee0036c7f
commit b469c8ddbd
3 changed files with 19 additions and 3 deletions

View File

@ -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 {