From: djk Date: Fri, 5 Nov 1999 20:43:04 +0000 (+0000) Subject: slightly more elegant version with error message X-Git-Tag: R_1_34~12 X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=cf33b1fa05b8e3489232a4e57f0ba2542b0e7a64;p=spider.git slightly more elegant version with error message --- diff --git a/Changes b/Changes index 99ffb8b9..02a1b91e 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ 04Nov99======================================================================= 1. Removed ~ from the end of the PC18. 2. Removed a hangover from duff character checking in cluster.pl +3. Stop PC frames that are to be routed, being routed back to themselves. 03Nov99======================================================================= 1. Simplified command caching so it uses anonymous subroutines, you should also get error messages back on the console now when developing. diff --git a/perl/DXProt.pm b/perl/DXProt.pm index b2978b5c..b99a352f 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -1006,7 +1006,10 @@ sub route my ($self, $call, $line) = @_; my $cl = DXCluster->get_exact($call); if ($cl) { # don't route it back down itself - return if ref $self && $call eq $self->{call}; + if (ref $self && $call eq $self->{call}) { + dbg('chan', "Trying to route back to source, dropped"); + return; + } my $hops; my $dxchan = $cl->{dxchan}; if ($dxchan) {