X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fforward%2Flatlong.pl;h=951b5d56df78121884131f4bfbf48b136ad67aba;hb=refs%2Fheads%2Fnewusers;hp=e10239890e3675173286cc7928c5faa5b6fd72c2;hpb=fe7780b7eb15406a7e5caac4ecc499c8f3304e18;p=spider.git diff --git a/cmd/forward/latlong.pl b/cmd/forward/latlong.pl index e1023989..951b5d56 100644 --- a/cmd/forward/latlong.pl +++ b/cmd/forward/latlong.pl @@ -5,12 +5,14 @@ # # 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; @@ -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;