From d7c3570ba310233ce10a70a219a08dbe39235883 Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 27 Aug 2018 21:20:41 +0200 Subject: Check nickname on kick (irc). Closes #488 --- bridge/irc/irc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index deec8970..cd37c0b4 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -306,7 +306,7 @@ func (b *Birc) handleJoinPart(client *girc.Client, event girc.Event) { return } channel := strings.ToLower(event.Params[0]) - if event.Command == "KICK" { + if event.Command == "KICK" && event.Params[1] == b.Nick { b.Log.Infof("Got kicked from %s by %s", channel, event.Source.Name) time.Sleep(time.Duration(b.GetInt("RejoinDelay")) * time.Second) b.Remote <- config.Message{Username: "system", Text: "rejoin", Channel: channel, Account: b.Account, Event: config.EVENT_REJOIN_CHANNELS} -- cgit v1.2.3