From: Dirk Koopman Date: Sun, 8 Jul 2007 15:17:37 +0000 (+0100) Subject: improve the fix slightly to avoid false positives X-Git-Tag: 1.55~106 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?p=spider.git;a=commitdiff_plain;h=e5c997014264879491d54f28811853a010519f5e improve the fix slightly to avoid false positives --- diff --git a/perl/DXProtHandle.pm b/perl/DXProtHandle.pm index b58f95bf..16623045 100644 --- a/perl/DXProtHandle.pm +++ b/perl/DXProtHandle.pm @@ -1739,13 +1739,15 @@ sub handle_93 $dxchan = DXChannel::get($main::myalias) if $to eq $main::mycall; $dxchan = DXChannel::get($to) unless $dxchan; # check it... - if (ref $dxchan && $dxchan->isa('DXChannel')) { - if ($dxchan->is_user) { - $dxchan->talk($from, $to, $via, $text, $onode); - return; + if ($dxchan) { + if (ref $dxchan && $dxchan->isa('DXChannel')) { + if ($dxchan->is_user) { + $dxchan->talk($from, $to, $via, $text, $onode); + return; + } + } else { + dbg("ERROR: $to -> $dxchan is not a DXChannel! (local talk)"); } - } else { - dbg("ERROR: $to -> $dxchan is not a DXChannel! (local talk)"); } # convert to PC10 talks where appropriate diff --git a/perl/Version.pm b/perl/Version.pm index cb6fc877..7d815614 100644 --- a/perl/Version.pm +++ b/perl/Version.pm @@ -11,6 +11,6 @@ use vars qw($version $subversion $build); $version = '1.54'; $subversion = '0'; -$build = '108'; +$build = '109'; 1;