projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
78cf2dc
)
adding missing regex handling
author
minima
<minima>
Fri, 17 Aug 2001 15:43:24 +0000
(15:43 +0000)
committer
minima
<minima>
Fri, 17 Aug 2001 15:43:24 +0000
(15:43 +0000)
cmd/show/station.pl
patch
|
blob
|
history
diff --git
a/cmd/show/station.pl
b/cmd/show/station.pl
index a79e93a8901572369718f984b370f8b6fb8972cf..26f2bbe6489fbb7f3c0b0274ddf74a65a15d4ca7 100644
(file)
--- a/
cmd/show/station.pl
+++ b/
cmd/show/station.pl
@@
-13,9
+13,17
@@
my $call;
my $seek;
push @f, $self->call unless @f;
my $seek;
push @f, $self->call unless @f;
-if (@f
== 1
&& uc $f[0] eq 'ALL') {
+if (@f
<= 2
&& uc $f[0] eq 'ALL') {
return (1, $self->msg('e6')) if ($self->priv < 6);
return (1, $self->msg('e6')) if ($self->priv < 6);
- my @calls = DXUser::get_all_calls();
+ 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;
foreach $call (@calls) {
my $ref = DXUser->get_current($call);
next if !$ref;