projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix problem with invalid callsigns starting with 0
[spider.git]
/
cmd
/
announce.pl
diff --git
a/cmd/announce.pl
b/cmd/announce.pl
index 6eb1810ee2418bc342cb613235de09090e23214d..703f19bd9fcd4378d9c815464c7b0c59b18e7e41 100644
(file)
--- a/
cmd/announce.pl
+++ b/
cmd/announce.pl
@@
-19,6
+19,7
@@
my ($self, $line) = @_;
my @f = split /\s+/, $line;
return (1, $self->msg('e5')) if $self->remotecmd;
return (1, $self->msg('e9')) if !@f;
my @f = split /\s+/, $line;
return (1, $self->msg('e5')) if $self->remotecmd;
return (1, $self->msg('e9')) if !@f;
+return (1, $self->msg('e28')) unless $self->registered;
my $sort = uc $f[0];
my @locals = DXCommandmode->get_all();
my $sort = uc $f[0];
my @locals = DXCommandmode->get_all();
@@
-26,6
+27,7
@@
my $to;
my $from = $self->call;
my $t = ztime(time);
my $tonode;
my $from = $self->call;
my $t = ztime(time);
my $tonode;
+my $toflag = '*';
my $sysopflag;
if ($sort eq "FULL") {
my $sysopflag;
if ($sort eq "FULL") {
@@
-48,15
+50,19
@@
$line =~ s/\^/:/og;
my @bad;
if (@bad = BadWords::check($line)) {
my @bad;
if (@bad = BadWords::check($line)) {
- return (1, $self->msg('e17', @bad));
+ $self->badcount(($self->badcount||0) + @bad);
+ Log('DXCommand', "$self->{call} swore: $line");
+ Log('ann', $to, $from, "[to $from only] $line");
+ $self->send("To $to de $from <$t>: $line");
+ return (1, ());
}
}
-return (1, $self->msg('dup')) if AnnTalk::dup($from, $to, $line);
+return (1, $self->msg('dup')) if AnnTalk::dup($from, $to
flag
, $line);
Log('ann', $to, $from, $line);
Log('ann', $to, $from, $line);
-DX
Prot::broadcast_list("To $to de $from <$t>: $line
", 'ann', undef, @locals);
+DX
Channel::broadcast_list("To $to de $from ($t): $line\a
", 'ann', undef, @locals);
if ($to ne "LOCAL") {
my $pc = DXProt::pc12($from, $line, $tonode, $sysopflag, 0);
if ($to ne "LOCAL") {
my $pc = DXProt::pc12($from, $line, $tonode, $sysopflag, 0);
- DX
Prot::broadcast_ak1a
($pc);
+ DX
Channel::broadcast_nodes
($pc);
}
return (1, ());
}
return (1, ());