diff options
author | Wim <wim@42.be> | 2018-08-27 21:20:41 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2018-08-27 21:20:41 +0200 |
commit | d7c3570ba310233ce10a70a219a08dbe39235883 (patch) | |
tree | 2129d5d94c022eb9b42c875d8b6940781c0c7eab | |
parent | ab4d51b40b486c43b19236ec7866949b90307ecc (diff) | |
download | matterbridge-msglm-d7c3570ba310233ce10a70a219a08dbe39235883.tar.gz matterbridge-msglm-d7c3570ba310233ce10a70a219a08dbe39235883.tar.bz2 matterbridge-msglm-d7c3570ba310233ce10a70a219a08dbe39235883.zip |
Check nickname on kick (irc). Closes #488
-rw-r--r-- | bridge/irc/irc.go | 2 |
1 files changed, 1 insertions, 1 deletions
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} |