]> ruin.nu Git - ndwebbie.git/commitdiff
parse scans from waves.pl too
authorMichael Andreen <harv@ruin.nu>
Mon, 16 Apr 2007 19:47:39 +0000 (19:47 +0000)
committerMichael Andreen <harv@ruin.nu>
Mon, 16 Apr 2007 19:47:39 +0000 (19:47 +0000)
ND/Web/Pages/AddIntel.pm

index c422e014120a599b6f64f7def9cdad4ebb51eae3..916dc99a33431cf796e049fc64d8a69664766931 100644 (file)
@@ -47,7 +47,7 @@ sub render_body {
                        my $addpoint = $DBH->prepare('UPDATE users SET scan_points = scan_points + 1 WHERE uid = ? ');
                        my $intel = param('intel');
                        my @scans;
-                       while ($intel =~ m/http:\/\/game.planetarion.com\/showscan.pl\?scan_id=(\d+)/g){
+                       while ($intel =~ m/http:\/\/game.planetarion.com\/.+?scan(?:_id)?=(\d+)/g){
                                my %scan;
                                $scan{Scan} = $1;
                                $scan{Message} = "Scan $1: ";