X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fstation.pl;h=d9f2b9d10d631f8feb433b5aec0f67159546b567;hb=668e4252d23e2eda2a6b234f1031e1c1a5f43d15;hp=a79e93a8901572369718f984b370f8b6fb8972cf;hpb=78cf2dcb9be8128af7f8dc5ae37540c9c53c6057;p=spider.git diff --git a/cmd/show/station.pl b/cmd/show/station.pl index a79e93a8..d9f2b9d1 100644 --- a/cmd/show/station.pl +++ b/cmd/show/station.pl @@ -13,9 +13,18 @@ my $call; my $seek; push @f, $self->call unless @f; -if (@f == 1 && uc $f[0] eq 'ALL') { - return (1, $self->msg('e6')) if ($self->priv < 6); - my @calls = DXUser::get_all_calls(); +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 '*'; + shift @f; + my $exp = shellregex(uc shift @f) if @f; + my @calls; + if ($exp) { + @calls = grep {m{$exp}} DXUser::get_all_calls(); + } else { + @calls = DXUser::get_all_calls(); + } + foreach $call (@calls) { my $ref = DXUser->get_current($call); next if !$ref;