X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdirectory.pl;h=7b9d6fc95ab3c41dd9740222d54e407759c81f3c;hb=f5028d38602385a6614c6234fa4165ee4f9e159c;hp=9ddbb77542d2a9e4f6d2536f32d10b8853340d94;hpb=c73f18c7f4534761e29b51f3f0426f6f1f7a073b;p=spider.git diff --git a/cmd/directory.pl b/cmd/directory.pl index 9ddbb775..7b9d6fc9 100644 --- a/cmd/directory.pl +++ b/cmd/directory.pl @@ -13,7 +13,12 @@ my $ref; my @out; my $f; my $n = 0; -my @all = grep {!($self->priv < 5 && $_->to ne $self->call && $_->from ne $self->call)} (DXMsg::get_all()); + +# select candidates +my @all = grep {!$_->private || !($self->priv < 5 && $_->to ne $self->call && $_->from ne $self->call)} (DXMsg::get_all()); +@all = grep {!$_->delete || ($self->priv >= 5 && $_->delete)} @all; + +return (1, $self->msg('e3', 'directory', $line)) unless @all; my $sel = 0; my $from = 0; my $to = $all[@all-1]->msgno;