Change DXUser->get* to DXUser::get*
[spider.git] / cmd / forward / latlong.pl
index 15712f003e635ade4a637623a582b0f09d7e50f4..e9afd71014e6e1913f998cdd802cfe4abeb2e69a 100644 (file)
@@ -1,11 +1,11 @@
 #
-# merge_qra <node>
+# forward/latlong <node> ...
 #
 # send out PC41s toward a node for every user that has a lat/long 
 #
 # Copyright (c) 2000 Dirk Koopman G1TLH
 #
-# $Id$
+#
 #
 
 my ($self, $line) = @_;
@@ -16,7 +16,7 @@ my @out;
 my $dxchan;
 
 for ( map {uc $_ } split /\s+/, $line ) {
-       if (($dxchan = DXChannel->get($_)) && $dxchan->is_node) {
+       if (($dxchan = DXChannel::get($_)) && $dxchan->is_node) {
                push @dxchan, $dxchan;
        } else {
                push @out, $self->msg('e10', $_);
@@ -29,7 +29,7 @@ use DB_File;
 my ($action, $count, $key, $data);
 for ($action = R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = R_NEXT) {
        if ($data =~ m{(?:lat|long) =>}) {
-               my $u = DXUser->get_current($key);
+               my $u = DXUser::get_current($key);
                if ($u) {
                        my $lat = $u->lat;
                        my $long = $u->long;
@@ -46,4 +46,4 @@ for ($action = R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $a
                }
        }
 }
-return(1, @out, "$count records sent");
+return(1, @out, $self->msg('rec', $count));