projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try again
[spider.git]
/
cmd
/
announce.pl
diff --git
a/cmd/announce.pl
b/cmd/announce.pl
index d2755b2df46309014c1b657e717baa94376992f4..5e0ff58c998c4c1c440d3a6a66ac66d0698ae4e8 100644
(file)
--- a/
cmd/announce.pl
+++ b/
cmd/announce.pl
@@
-17,8
+17,9
@@
my ($self, $line) = @_;
my @f = split /\s+/, $line;
my ($self, $line) = @_;
my @f = split /\s+/, $line;
-return (1, $self->msg('e5')) if $self->remotecmd;
+return (1, $self->msg('e5')) if $self->remotecmd
|| $self->inscript
;
return (1, $self->msg('e9')) if !@f;
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();
@@
-50,12
+51,15
@@
$line =~ s/\^/:/og;
my @bad;
if (@bad = BadWords::check($line)) {
$self->badcount(($self->badcount||0) + @bad);
my @bad;
if (@bad = BadWords::check($line)) {
$self->badcount(($self->badcount||0) + @bad);
- return (1, $self->msg('e17', @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, $toflag, $line);
+return (1, $self->msg('dup')) if
$self->priv < 5 &&
AnnTalk::dup($from, $toflag, $line);
Log('ann', $to, $from, $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);
if ($to ne "LOCAL") {
my $pc = DXProt::pc12($from, $line, $tonode, $sysopflag, 0);
DXChannel::broadcast_nodes($pc);