summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-04-28 11:00:53 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-04-28 11:00:53 +0000
commitbacfcb060c1b687f70db4d59797e1cbc8bfe0f62 (patch)
treed810162f299b3cfbf7b4f5c89849d1d586f6fbda /scripts
parent576d5d6a7b3953886d91c2467f27943f79a27ab2 (diff)
downloadirssi-bacfcb060c1b687f70db4d59797e1cbc8bfe0f62.zip
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
Diffstat (limited to 'scripts')
-rw-r--r--scripts/autorejoin.pl4
1 files changed, 3 insertions, 1 deletions
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);