allow users to see there own talk and log messages
[spider.git] / cmd / show / log.pl
index 26b99ef213fc062a514edf47012e2b6a7dd0c3bd..bced585507c753b95bf4420131544a4537fa1760 100644 (file)
@@ -7,8 +7,6 @@
 #
 my $self = shift;
 
-return (1, $self->msg('e5')) if $self->priv < 6;
-
 my $cmdline = shift;
 my @f = split /\s+/, $cmdline;
 my $f;
@@ -32,6 +30,10 @@ while ($f = shift @f) {                 # next field
 
 $to = 20 unless $to;
 $from = 0 unless $from;
+if ($self->priv < 6) {
+       $who = $self->call unless $who;
+       return (1, $self->msg('e5')) if $who ne $self->call;
+}
 
 @out = DXLog::print($from, $to, $main::systime, undef,  $who);
 return (1, @out);