make DXUser use JSON::XS and Sqlite
[spider.git] / cmd / show / station.pl
index a5ffe2adc01f9e8f651da739982a10134dab5b46..f6e43f1a2b64ea0cb73bfaac1a2012ee67cf4d52 100644 (file)
@@ -14,8 +14,8 @@ my $seek;
 push @f, $self->call unless @f;
 
 if (@f <= 2 && uc $f[0] eq 'ALL') {
-       return (1, $self->msg('e6')) if @f == 1 && $self->priv < 6; 
-       return (1, $self->msg('e6')) if $self->priv < 5 || $f[1] eq '*'
+       return (1, $self->msg('e6')) if $self->remotecmd && $self->priv < 6; 
+       return (1, $self->msg('e6')) if $self->priv < 5; 
        shift @f;
        my $exp = shellregex(uc shift @f) if @f; 
        my @calls;
@@ -26,7 +26,7 @@ if (@f <= 2 && uc $f[0] eq 'ALL') {
        }
        
        foreach $call (@calls) {
-               my $ref = DXUser->get_current($call);
+               my $ref = DXUser::get_current($call);
                next if !$ref;
                my $lat = $ref->lat;
                my $long = $ref->long;
@@ -42,7 +42,7 @@ if (@f <= 2 && uc $f[0] eq 'ALL') {
        }
 } else {
        foreach $call (@f) {
-               my $ref = DXUser->get_current($call);
+               my $ref = DXUser::get_current($call);
                if ($ref) {
                        my $name = $ref->name;  
                        my $qth = $ref->qth;