X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdirectory.pl;h=39131aaa7dcbda9280af8e55bc1039aa015631da;hb=412fb1b9e4070d7791f4e986b55bbc0c06f612ea;hp=9ddbb77542d2a9e4f6d2536f32d10b8853340d94;hpb=c73f18c7f4534761e29b51f3f0426f6f1f7a073b;p=spider.git 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;