X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fsend.pl;fp=cmd%2Fsend.pl;h=e78aabd311eaf020852e52574aa1c54c7c340456;hb=9b0b6e74e3463465f2cd6da576b366403a8d0d5e;hp=b728d38791fd886ea6acdad5754141019bcbb96e;hpb=8a75f069df30fae5d585be1d9828e03d1220583e;p=spider.git diff --git a/cmd/send.pl b/cmd/send.pl index b728d387..e78aabd3 100644 --- a/cmd/send.pl +++ b/cmd/send.pl @@ -113,19 +113,25 @@ if ($self->state eq "prompt") { # $DB::single = 1; # is this callsign a distro? - my $fn = "/spider/msg/distro/$f.pl"; - if (-e $fn) { - my $fh = new IO::File $fn; - if ($fh) { - local $/ = undef; - my $s = <$fh>; - $fh->close; - my @call; - @call = eval $s; - return (1, "Error in Distro $f.pl:", $@) if $@; - if (@call > 0) { - push @f, @call; - next; + # but be careful about messages to 'sysop' + if ($self->priv < 5 && $f eq 'SYSOP') { + push @to, $main::myalias; + $loc->{private} = 1; + } else { + my $fn = "/spider/msg/distro/$f.pl"; + if (-e $fn) { + my $fh = new IO::File $fn; + if ($fh) { + local $/ = undef; + my $s = <$fh>; + $fh->close; + my @call; + @call = eval $s; + return (1, "Error in Distro $f.pl:", $@) if $@; + if (@call > 0) { + push @f, @call; + next; + } } } }