From 37641bf56c350393ed49010b5ec4a35e791f51ff Mon Sep 17 00:00:00 2001 From: lookshe Date: Tue, 27 Sep 2011 10:35:30 +0200 Subject: blank position was wrong --- lastseen.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lastseen.pl b/lastseen.pl index cf23ebe..1c3c6cc 100644 --- a/lastseen.pl +++ b/lastseen.pl @@ -30,7 +30,7 @@ my $log = File::ReadBackwards->new($file) || die $!; while ($line=$log->readline()){ # $line=$log->readline(); if ($date eq 0){ - if ($line =~ m/^\[[0-9]{2}:[0-9]{2}(:[0-9]{2})?\] (Nick change:)? $nick /i && $line !~ m/joined #/ ) { + if ($line =~ m/^\[[0-9]{2}:[0-9]{2}(:[0-9]{2})?\]( Nick change:)? $nick /i && $line !~ m/joined #/ ) { $date=1; $lastaction=$line; } -- cgit v1.2.3