+03Oct02=======================================================================
+1. only sysop (priv=5+) can now send to distro SYSOP, ordinary users will have
+their message routed to the $main::myalias callsign as a private message.
29Sep02=======================================================================
1. Added LRU caching to DXUsers and Prefix.
2. make Timer::handler only search its chain once a second seeing as that
$include = 1;
next;
}
- $include =~ 1 if $cmd =~ /$line/i;
+ $include = 1 if $cmd =~ /$line/i;
}
$cmd{$cmd} = "$cmd $desc" if $include;
$defh->close;
$include = 1;
next;
}
- $include =~ 1 if $cmd =~ /$line/i;
+ $include = 1 if $cmd =~ /$line/i;
}
$cmd{$cmd} = "$cmd $desc" if $include;
$h->close;
# $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;
+ }
}
}
}