diff options
author | lookshe <mail@lookshe.org> | 2011-09-27 10:35:30 +0200 |
---|---|---|
committer | lookshe <mail@lookshe.org> | 2011-09-27 10:35:30 +0200 |
commit | 37641bf56c350393ed49010b5ec4a35e791f51ff (patch) | |
tree | a5d628e17bdfde2c84402521248f5e756564e4a0 | |
parent | 54ff27a51600bdbf850fd8c3093b4f117fffc678 (diff) |
blank position was wrong
-rw-r--r-- | lastseen.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |