projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix 5.8 ism that does not work on 5.6 (incrementing a subroutine).
[spider.git]
/
cmd
/
announce.pl
diff --git
a/cmd/announce.pl
b/cmd/announce.pl
index 6b66d68eb9947dfb2c181bdac6bfb0d1863e1abb..9a1cbd376b2dcc13700351e14774867b939878e7 100644
(file)
--- a/
cmd/announce.pl
+++ b/
cmd/announce.pl
@@
-17,7
+17,7
@@
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('e28')) unless $self->registered;
return (1, $self->msg('e9')) if !@f;
return (1, $self->msg('e28')) unless $self->registered;
@@
-51,7
+51,7
@@
$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);
- Log
('DXCommand', "$self->{call} swore: $line
");
+ Log
Dbg('DXCommand', "$self->{call} swore: $line (with words:" . join(',', @bad) . ")
");
Log('ann', $to, $from, "[to $from only] $line");
$self->send("To $to de $from <$t>: $line");
return (1, ());
Log('ann', $to, $from, "[to $from only] $line");
$self->send("To $to de $from <$t>: $line");
return (1, ());