projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add 'a' for announce
[spider.git]
/
perl
/
Filter.pm
diff --git
a/perl/Filter.pm
b/perl/Filter.pm
index b027041c8c664711a0faaf511259bbcb147653c8..2c32bf025981465e9ae9b8f374fddeb2fa53527c 100644
(file)
--- a/
perl/Filter.pm
+++ b/
perl/Filter.pm
@@
-226,7
+226,7
@@
sub it
my $hops = $self->{hops} if exists $self->{hops};
if (isdbg('filter')) {
my $hops = $self->{hops} if exists $self->{hops};
if (isdbg('filter')) {
- my $args = join '\',\'', @_;
+ my $args = join '\',\'',
map {defined $_ ? $_ : 'undef'}
@_;
my $true = $r ? "OK " : "REJ";
my $sort = $self->{sort};
my $dir = $self->{name} =~ /^in_/i ? "IN " : "OUT";
my $true = $r ? "OK " : "REJ";
my $sort = $self->{sort};
my $dir = $self->{name} =~ /^in_/i ? "IN " : "OUT";
@@
-310,8
+310,9
@@
sub install
}
foreach $dxchan (@dxchan) {
my $n = "$in$sort" . "filter";
}
foreach $dxchan (@dxchan) {
my $n = "$in$sort" . "filter";
- my $ref = $dxchan->$n;
- if (!$ref || ($ref && uc $ref->{name} eq "$name.PL")) {
+ my $i = $in ? 'IN_' : '';
+ my $ref = $dxchan->$n();
+ if (!$ref || ($ref && uc $ref->{name} eq "$i$name.PL")) {
$dxchan->$n($remove ? undef : $self);
}
}
$dxchan->$n($remove ? undef : $self);
}
}