SET sent = TRUE WHERE id = ANY($1)
});
$scans->execute;
+ my @scanreqs;
while (my $scan = $scans->fetchrow_hashref){
$self->message("($scan->{coords} $scan->{type})"
." http://game.planetarion.com/showscan.pl?scan_id=$scan->{scan_id}"
, @{$scan->{nick}});
$sentscan->execute($scan->{id});
+ push @scanreqs, @{$scan->{id}};
+ }
+
+ if (scalar @scanreqs > 0)
+ {
+ my $scanreqs = join(', ', @scanreqs);
+ $self->toTarget(scan => "Handled the following requests: $scanreqs");
}
my @row = $dbh->selectrow_array(q{SELECT tick(), max(tick) FROM planet_stats});