remove warnings from $BRANCH lines for 5.8.0
[spider.git] / cmd / announce.pl
index 3b07d84ddec974639e6943c16b5ae0eb92c2640f..703f19bd9fcd4378d9c815464c7b0c59b18e7e41 100644 (file)
@@ -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;
+return (1, $self->msg('e28')) unless $self->registered;
 
 my $sort = uc $f[0];
 my @locals = DXCommandmode->get_all();
@@ -58,7 +59,7 @@ if (@bad = BadWords::check($line)) {
 
 return (1, $self->msg('dup')) if AnnTalk::dup($from, $toflag, $line);
 Log('ann', $to, $from, $line);
-DXChannel::broadcast_list("To $to de $from <$t>: $line", 'ann', undef, @locals);
+DXChannel::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);
   DXChannel::broadcast_nodes($pc);