]> ruin.nu Git - ndwebbie.git/blobdiff - scripts/scans.pl
Added the ndreport script and updated ndmail so it uses DB.pm
[ndwebbie.git] / scripts / scans.pl
index 943ad62dc7c8e8cb76b8a84c1a16d4577fa74ce2..096d175bc015fdd6613cf43eea66c3f0f2f97da1 100755 (executable)
@@ -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;
@@ -264,7 +264,7 @@ while (my $scan = $newscans->fetchrow_hashref){
 #$dbh->rollback;
 $dbh->commit;
 
-system 'killall','-USR1', 'irssi' if $parsedscans;
+system 'killall','-USR1', 'ndbot.pl' if $parsedscans;
 
 sub addfleet {
        my ($name,$mission,$ships,$sender,$tick,$amount) = @_;