X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FRoute.pm;h=582434415073033e2ba22aed70c625b2e2c8e3b1;hb=b94f31463a361bf19e3ed8173e7e6961a9e49fb9;hp=0676139aa033647f434bc557a6c6a4cdfc179c82;hpb=2841b340579dae85808c5a571df3140b736c2fb2;p=spider.git diff --git a/perl/Route.pm b/perl/Route.pm index 0676139a..58243441 100644 --- a/perl/Route.pm +++ b/perl/Route.pm @@ -60,7 +60,9 @@ $filterdef = bless ([ sub new { - my ($pkg, $call) = @_; + my $pkg = shift; + my $call = shift; + $pkg = ref $pkg if ref $pkg; my $self = bless {call => $call}, $pkg; @@ -128,6 +130,16 @@ sub _dellist return @out; } +sub _haslist +{ + my $self = shift; + my $field = shift; + my @out; + my $call = shift; + my $r = grep $_->{call} eq $call, @{$self->{$field}}; + dbg(ref($self) . " $call is " . $r?'in':'NOT in' . " $self->{call}\->\{$field\}") if isdbg('routelow'); +} + sub is_empty { my $self = shift; @@ -200,7 +212,7 @@ sub config # recursion detector if ((DXChannel::get($self->{call}) && $level > 1) || grep $self->{call} eq $_, @$seen) { $line .= ' ...'; - push @out, $line; +# push @out, $line; return @out; } push @$seen, $self->{call};