From bacfcb060c1b687f70db4d59797e1cbc8bfe0f62 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 28 Apr 2000 11:00:53 +0000 Subject: It tried to autorejoin back to channel even if someone else was kicked.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@196 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- scripts/autorejoin.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/autorejoin.pl') diff --git a/scripts/autorejoin.pl b/scripts/autorejoin.pl index d49dac3f..85331c5a 100644 --- a/scripts/autorejoin.pl +++ b/scripts/autorejoin.pl @@ -8,7 +8,9 @@ use Irssi; sub event_rejoin_kick { my ($data, $server) = @_; - my ($channel) = split(/ +/, $data); + my ($channel, $nick) = split(/ +/, $data); + + return if ($server->values()->{'nick'} ne $nick); # check if channel has password $chanrec = $server->channel_find($channel); -- cgit v1.2.3