From: djk Date: Mon, 24 May 1999 19:46:14 +0000 (+0000) Subject: fixed problems with directory only listing privates for you X-Git-Tag: R_1_28~3 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=8b77a917e35a222cb3efdaee28e41a60bf7bd1e0;p=spider.git fixed problems with directory only listing privates for you --- diff --git a/cmd/directory.pl b/cmd/directory.pl index 9ddbb775..39131aaa 100644 --- a/cmd/directory.pl +++ b/cmd/directory.pl @@ -13,7 +13,8 @@ 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()); +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; my $sel = 0; my $from = 0; my $to = $all[@all-1]->msgno;