]> ruin.nu Git - NDIRC.git/commitdiff
Updated checkPoints and currentCalls
authorMichael Andreen <harv@ruin.nu>
Sun, 9 Sep 2007 15:57:15 +0000 (17:57 +0200)
committerMichael Andreen <harv@ruin.nu>
Sun, 9 Sep 2007 15:57:15 +0000 (17:57 +0200)
Members.pm

index e60ecde6820886bfa35f0dc04f8d98ad75dd42c2..ba62c1dd506adb417bba9c6ccaf602892871b3df 100644 (file)
@@ -28,8 +28,7 @@ our @ISA = qw/Exporter/;
 our @EXPORT = qw/currentCalls showraids checkPoints findSMS/;
 
 sub currentCalls {
-       my ($verbose) = @_;
-       DB();
+       my ($msg, $command) = @_;
        if (1){ #TODO: add check for member
                my $f = $ND::DBH->prepare(<<SQL
        SELECT (c.landing_tick - tick()) AS eta, concat(i.shiptype||'/') AS shiptype, dc.username,p.x
@@ -51,7 +50,7 @@ SQL
                        $calls .= " (Anti $row[1] ETA: $row[0] Cluster: $row[3] DC: $dc) |"
                }
                chop($calls);
-               if (defined $verbose || length $calls > 0){
+               if (defined $command || length $calls > 0){
                        $ND::server->command("msg $ND::target Current calls: $calls");
                }
        }
@@ -78,8 +77,7 @@ SQL
 }
 
 sub checkPoints {
-       my ($nick) = @_;
-       DB();
+       my ($nick,$command) = @_;
        my $f;
        if ($nick){
                if (officer() || dc() || bc()){