diff options
author | Wim <wim@42.be> | 2017-12-23 00:11:30 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-12-23 00:11:30 +0100 |
commit | 97c944bb632fee44a56fe7864dca22c905845f4d (patch) | |
tree | 7b7dd370359714537cdbcc59e158d5365d0e6ffa /bridge/irc/irc.go | |
parent | d0c4fe78eedc883049b684899cee87985ee36680 (diff) | |
download | matterbridge-msglm-97c944bb632fee44a56fe7864dca22c905845f4d.tar.gz matterbridge-msglm-97c944bb632fee44a56fe7864dca22c905845f4d.tar.bz2 matterbridge-msglm-97c944bb632fee44a56fe7864dca22c905845f4d.zip |
Add RejoinDelay option. Delay to rejoin after channel kick (irc). Closes #322
Diffstat (limited to 'bridge/irc/irc.go')
-rw-r--r-- | bridge/irc/irc.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index c9c8cbb2..b7465977 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -267,6 +267,7 @@ func (b *Birc) handleJoinPart(client *girc.Client, event girc.Event) { channel := event.Params[0] if event.Command == "KICK" { flog.Infof("Got kicked from %s by %s", channel, event.Source.Name) + time.Sleep(time.Duration(b.Config.RejoinDelay) * time.Second) b.Remote <- config.Message{Username: "system", Text: "rejoin", Channel: channel, Account: b.Account, Event: config.EVENT_REJOIN_CHANNELS} return } |