projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
6. Implemented PC49 delete/full from outside (kill full on the inside)
[spider.git]
/
cmd
/
announce.pl
diff --git
a/cmd/announce.pl
b/cmd/announce.pl
index f9d3fc4b285b8640c0cf04100ba49600634de184..b839e9c75bc2dd5169cff4f820e549ce17f410a0 100644
(file)
--- a/
cmd/announce.pl
+++ b/
cmd/announce.pl
@@
-12,9
+12,14
@@
#
# $Id$
#
#
# $Id$
#
+# Modified 13Dec98 Iain Phillips G0RDI
+#
my ($self, $line) = @_;
my @f = split /\s+/, $line;
my ($self, $line) = @_;
my @f = split /\s+/, $line;
+
+return (1, $self->msg('e9')) if !@f;
+
my $sort = uc $f[0];
my @locals = DXCommandmode->get_all();
my $to;
my $sort = uc $f[0];
my @locals = DXCommandmode->get_all();
my $to;
@@
-31,8
+36,13
@@
if ($sort eq "FULL") {
@locals = map { $_->priv >= 5 ? $_ : () } @locals;
$to = "SYSOP";
$sysopflag = '*';
@locals = map { $_->priv >= 5 ? $_ : () } @locals;
$to = "SYSOP";
$sysopflag = '*';
-} else {
+} elsif ($sort eq "LOCAL") {
+ $line =~ s/^$f[0]\s+//; # remove it
+ $to = "LOCAL";
+} elsif ($sort eq "") {
$to = "LOCAL";
$to = "LOCAL";
+} else {
+ return (1, $self->msg('e11'));
}
Log('ann', $to, $from, $line);
}
Log('ann', $to, $from, $line);