summaryrefslogtreecommitdiff
path: root/scripts/autorejoin.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/autorejoin.pl')
-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);