X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProtHandle.pm;h=10a5fe726c4fad8336505ebee7ee272c1df060f8;hb=6fb4862ab94c57166f0f09c0a5f1a28cb35b5189;hp=831d8885be1918ef565dcb2a64a28196d13e49c1;hpb=85915352f85d7fbb42bee4cf8f6a684c62b96dc9;p=spider.git diff --git a/perl/DXProtHandle.pm b/perl/DXProtHandle.pm index 831d8885..10a5fe72 100644 --- a/perl/DXProtHandle.pm +++ b/perl/DXProtHandle.pm @@ -1770,24 +1770,21 @@ sub handle_93 } # convert to PC10 talks where appropriate - if ($ref) { - # just go for the "best" one for now (rather than broadcast) - $dxchan = $ref->dxchan; + # just go for the "best" one for now (rather than broadcast) + $dxchan = $ref->dxchan; - # check it... - if (ref $dxchan && $dxchan->isa('DXChannel')) { - if ($dxchan->{do_pc9x}) { - $dxchan->send($line); - } else { - $dxchan->talk($from, $to, $via, $text, $onode); - } + # check it... + if (ref $dxchan && $dxchan->isa('DXChannel')) { + if ($dxchan->{do_pc9x}) { + $dxchan->send($line); } else { - dbg("ERROR: $to -> $dxchan is not a DXChannel! (convert to pc10)"); + $dxchan->talk($from, $to, $via, $text, $onode); } - return; + } else { + dbg("ERROR: $to -> $dxchan is not a DXChannel! (convert to pc10)"); } + return; - # otherwise, drop through and allow it to be broadcast } elsif ($to eq '*' || $to eq 'SYSOP' || $to eq 'WX') { # announces my $sysop = $to eq 'SYSOP' ? '*' : ' ';