summaryrefslogtreecommitdiffstats
path: root/bridge/irc/irc.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-08-27 21:20:41 +0200
committerWim <wim@42.be>2018-08-27 21:20:41 +0200
commitd7c3570ba310233ce10a70a219a08dbe39235883 (patch)
tree2129d5d94c022eb9b42c875d8b6940781c0c7eab /bridge/irc/irc.go
parentab4d51b40b486c43b19236ec7866949b90307ecc (diff)
downloadmatterbridge-msglm-d7c3570ba310233ce10a70a219a08dbe39235883.tar.gz
matterbridge-msglm-d7c3570ba310233ce10a70a219a08dbe39235883.tar.bz2
matterbridge-msglm-d7c3570ba310233ce10a70a219a08dbe39235883.zip
Check nickname on kick (irc). Closes #488
Diffstat (limited to 'bridge/irc/irc.go')
-rw-r--r--bridge/irc/irc.go2
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}