]> ruin.nu Git - ndwebbie.git/blobdiff - check.pl
removed in favor of ND::Include::log_message
[ndwebbie.git] / check.pl
index 9acf9bf0d89d957189b3028a9c2dc7ba19db089b..04f49d3f4c89cda80677417b1c0baee47a4e67bd 100644 (file)
--- a/check.pl
+++ b/check.pl
 use strict;
 use warnings FATAL => 'all';
 no warnings qw(uninitialized);
+use ND::Include;
 
 $ND::TEMPLATE->param(TITLE => 'Check planets and galaxies');
 
 our $BODY;
 our $DBH;
-our $LOG;
 
 $BODY->param(isBC => isMember() && (isOfficer() || isBC));
 
@@ -51,7 +51,7 @@ if (isMember() && param('cmd') eq 'arbiter'){
        }else{
                $BODY->param(Arbiter => '<b>KILL THESE BASTARDS</b>');
        }
-       $LOG->execute($ND::UID,"Arbiter check on $x:$y");
+       log_message $ND::UID,"Arbiter check on $x:$y";
 }
 
 my $where = '';
@@ -71,7 +71,7 @@ if (defined $z){
 }else{
        $query->execute($x,$y);
        if (isMember() && (isBC() || isOfficer()) && !isHC()){
-               $LOG->execute($ND::UID,"BC browsing $x:$y");
+               log_message $ND::UID,"BC browsing $x:$y";
        }
 }
 my @planets;
@@ -91,7 +91,7 @@ while (my ($id,$coords,$planet,$race,$size,$score,$value,$xp,$sizerank,$scoreran
                $planet{Relationship} = $relationship;
                $planet{isBC} = 1;
                if ($z && $alliance eq 'NewDawn'){
-                       $LOG->execute($ND::UID,"BC browsing ND planet $coords tick $ND::TICK");
+                       log_message $ND::UID,"BC browsing ND planet $coords tick $ND::TICK";
                }
        }
        $i++;