projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
run create_prefix.pl on last update
[spider.git]
/
cmd
/
directory.pl
diff --git
a/cmd/directory.pl
b/cmd/directory.pl
index 39131aaa7dcbda9280af8e55bc1039aa015631da..1e2193219ef984afc97bde2cc1e0dfbba04f5563 100644
(file)
--- a/
cmd/directory.pl
+++ b/
cmd/directory.pl
@@
-3,7
+3,7
@@
#
# Copyright (c) Dirk Koopman G1TLH
#
#
# Copyright (c) Dirk Koopman G1TLH
#
-#
$Id$
+#
#
my ($self, $line) = @_;
#
my ($self, $line) = @_;
@@
-13,8
+13,12
@@
my $ref;
my @out;
my $f;
my $n = 0;
my @out;
my $f;
my $n = 0;
+
+# select candidates
my @all = grep {!$_->private || !($self->priv < 5 && $_->to ne $self->call && $_->from ne $self->call)} (DXMsg::get_all());
my @all = grep {!$_->private || !($self->priv < 5 && $_->to ne $self->call && $_->from ne $self->call)} (DXMsg::get_all());
-return (1, $self->msg('e3', 'directory', $line)) unless @all;
+@all = grep {!$_->delete || ($self->priv >= 5 && $_->delete)} @all;
+
+return (1, $self->msg('dir1')) unless @all;
my $sel = 0;
my $from = 0;
my $to = $all[@all-1]->msgno;
my $sel = 0;
my $from = 0;
my $to = $all[@all-1]->msgno;
@@
-76,6
+80,6
@@
if (@ref) {
last if ++$count >= $n;
}
} else {
last if ++$count >= $n;
}
} else {
- push @out, $self->msg('
e3', 'directory', $line
);
+ push @out, $self->msg('
dir1'
);
}
return (1, @out);
}
return (1, @out);