improve the fix slightly to avoid false positives
authorDirk Koopman <djk@tobit.co.uk>
Sun, 8 Jul 2007 15:17:37 +0000 (16:17 +0100)
committerDirk Koopman <djk@tobit.co.uk>
Sun, 8 Jul 2007 15:17:37 +0000 (16:17 +0100)
perl/DXProtHandle.pm
perl/Version.pm

index b58f95bf2f7e2f0e7bdd86b6f12670f27d6248da..16623045ba106afef6b63272e5cdad006ad522e5 100644 (file)
@@ -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
index cb6fc8775377f393241fe58782b31ca895f53a81..7d81561483ec4e361356731f96d5933d174667be 100644 (file)
@@ -11,6 +11,6 @@ use vars qw($version $subversion $build);
 
 $version = '1.54';
 $subversion = '0';
-$build = '108';
+$build = '109';
 
 1;