]> ruin.nu Git - NDIRC.git/blobdiff - Delling.pm
Handle scan requests
[NDIRC.git] / Delling.pm
index 01097f2b318e54b9e2472bf34311e4efca472464..fe35fe131562ee1fecbb8d3f25b3cc82ad0a5ce2 100644 (file)
@@ -162,8 +162,9 @@ sub refresh {
                });
        $scans->execute;
        while (my $scan = $scans->fetchrow_hashref){
-               $heap->{irc}->yield(notice => $scan->{nick}, "($scan->{coords} $scan->{type})"
-                       ." http://game.planetarion.com/showscan.pl?scan_id=$scan->{scan_id}");
+               $self->message("($scan->{coords} $scan->{type})"
+                       ." http://game.planetarion.com/showscan.pl?scan_id=$scan->{scan_id}"
+                       , @{$scan->{nick}});
                $sentscan->execute($scan->{id});
        }