From d0b2a8bee12b33257f5ecc79fc60f6703c4190e0 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Thu, 3 Sep 2009 11:53:43 +0200 Subject: [PATCH] Fixed the parsing of incoming fleets on news scans --- scripts/scans.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scans.pl b/scripts/scans.pl index 185c76c..096d175 100755 --- a/scripts/scans.pl +++ b/scripts/scans.pl @@ -220,7 +220,7 @@ while (my $scan = $newscans->fetchrow_hashref){ my $id = addintel($1,$mission,$planet,$target,$6 ,$eta,$back,undef, ($x == $2 && $y == $3)); $intelscan->execute($id,$scan->{id}); - }elsif($news eq 'Incoming' && $text =~ m/We have detected an open jumpgate from (.*?), located at (\d+):(\d+):(\d+). The fleet will approach our system in tick (\d+) and appears to have roughly (\d+) ships/g){ + }elsif($news eq 'Incoming' && $text =~ m/We have detected an open jumpgate from (.*?), located at (\d+):(\d+):(\d+). The fleet will approach our system in tick (\d+) and appears to have (\d+) visible ships/g){ my $eta = $5 - $t; my $mission = ''; my $back = $5 + $eta; -- 2.39.2