X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdirectory.pl;h=7b9d6fc95ab3c41dd9740222d54e407759c81f3c;hb=732e58eaf2e7ef261102aed4f03185fcc775668f;hp=39131aaa7dcbda9280af8e55bc1039aa015631da;hpb=8e095bdba5dc26a87b0f1ed0254d08ba80636725;p=spider.git diff --git a/cmd/directory.pl b/cmd/directory.pl index 39131aaa..7b9d6fc9 100644 --- a/cmd/directory.pl +++ b/cmd/directory.pl @@ -13,7 +13,11 @@ my $ref; 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()); +@all = grep {!$_->delete || ($self->priv >= 5 && $_->delete)} @all; + return (1, $self->msg('e3', 'directory', $line)) unless @all; my $sel = 0; my $from = 0;