fixed problems with directory only listing privates for you
authordjk <djk>
Mon, 24 May 1999 19:46:14 +0000 (19:46 +0000)
committerdjk <djk>
Mon, 24 May 1999 19:46:14 +0000 (19:46 +0000)
cmd/directory.pl

index 9ddbb77542d2a9e4f6d2536f32d10b8853340d94..39131aaa7dcbda9280af8e55bc1039aa015631da 100644 (file)
@@ -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;