From 1cb36d8d6abd14abad07e7dc49ed3a8cc396ffaa Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Tue, 12 Dec 2006 12:20:30 +0000 Subject: [PATCH] minor fixes --- check.pl | 4 ++-- templates/check.tmpl | 2 +- templates/top100.tmpl | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/check.pl b/check.pl index 1f9fd03..9112aa2 100644 --- a/check.pl +++ b/check.pl @@ -41,9 +41,9 @@ if (param('coords') =~ /(\d+)(?: |:)(\d+)(?:(?: |:)(\d+))?(?: |:(\d+))?/){ } if (isMember() && param('cmd') eq 'arbiter'){ - my $query = $DBH->prepare(q{SELECT count(*) AS friendlies FROM current_planet_stats WHERE x = ? AND z = ? + my $query = $DBH->prepare(q{SELECT count(*) AS friendlies FROM current_planet_stats WHERE x = ? AND y = ? AND (planet_status IN ('Friendly','NAP') OR relationship IN ('Friendly','NAP'))}); - my $count = $DBH->selectrow_array($query,undef,$x,$y); + my ($count) = $DBH->selectrow_array($query,undef,$x,$y); if ($count > 0){ $BODY->param(Arbiter => 'DO NOT ATTACK THIS GAL'); }else{ diff --git a/templates/check.tmpl b/templates/check.tmpl index 7b36603..a3b2560 100644 --- a/templates/check.tmpl +++ b/templates/check.tmpl @@ -1,4 +1,4 @@ -

Do arbiter check on gal

+

Do arbiter check on gal

diff --git a/templates/top100.tmpl b/templates/top100.tmpl index 9376977..f723dd0 100644 --- a/templates/top100.tmpl +++ b/templates/top100.tmpl @@ -1,7 +1,6 @@

Previous 100 Next 100

CoordsPlanetRaceSize (rank)Score (rank)Value (rank) XP (rank)Fleet (Resouce) valueNickHit usAlliance
- -- 2.39.2
CoordsPlanetRace Size (rank) Score (rank)