Fix all the DXUser API changes to use JSON
[spider.git] / cmd / forward / latlong.pl
index 2282be3cce01e43e53b9147bd75cea0ec177a208..951b5d56df78121884131f4bfbf48b136ad67aba 100644 (file)
@@ -11,6 +11,8 @@
 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;