got routing essentially working
[spider.git] / perl / DXCommandmode.pm
index d39af559e625f135b6c5e1a032a3f0883b4ccb74..928981abd0effd850d4d301db6ccc41673c9726a 100644 (file)
@@ -67,8 +67,8 @@ sub start
   
   # issue a pc16 to everybody interested
   my $nchan = DXChannel->get($main::mycall);
-  my $pc16 = $nchan->pc16($cuser);
-  DXProt::broadcast_ak1a($pc16);
+  my @pc16 = DXProt::pc16($nchan, $cuser);
+  DXProt::broadcast_ak1a(@pc16);
 }
 
 #
@@ -153,7 +153,7 @@ sub finish
 
   # issue a pc17 to everybody interested
   my $nchan = DXChannel->get($main::mycall);
-  my $pc17 = $nchan->pc17($ref);
+  my $pc17 = $nchan->pc17($self);
   DXProt::broadcast_ak1a($pc17);
   
   $ref->del() if $ref;
@@ -352,10 +352,10 @@ sub eval_file {
   my @r;
   my $c = qq{ \@r = \$self->$package(\@_); };
   dbg('eval', "cluster cmd = $c\n");
-  eval  $c; ;
+  eval  $c;
   if ($@) {
     delete_package($package);
-       return (0, "Syserr: Eval err $@ on cached $package");
+       return (1, "Syserr: Eval err $@ on cached $package");
   }
 
   #take a look if you want