X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fforward%2Flatlong.pl;h=951b5d56df78121884131f4bfbf48b136ad67aba;hb=ca828d0e2a21d9a6540361ca4878df71f125e120;hp=15712f003e635ade4a637623a582b0f09d7e50f4;hpb=91cb091ed723c5650202345ae9c4f0277e36f0a8;p=spider.git diff --git a/cmd/forward/latlong.pl b/cmd/forward/latlong.pl index 15712f00..951b5d56 100644 --- a/cmd/forward/latlong.pl +++ b/cmd/forward/latlong.pl @@ -1,22 +1,24 @@ # -# merge_qra +# forward/latlong ... # # send out PC41s toward a node for every user that has a lat/long # # Copyright (c) 2000 Dirk Koopman G1TLH # -# $Id$ +# # my ($self, $line) = @_; return (1, $self->msg('e5')) unless $self->priv >= 6; +return (1, "I can't image why you want to use this command other than as a DoS attack", "DO NOT USE!!!"); + my @dxchan; 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 +31,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 +48,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));