1. Crossed fingers, got rid of the instabilities caused by execing programs
[spider.git] / cmd / merge.pl
index a17c736ed5b492534a91ea1ba973d158e3b3d344..51620b603857a3eae87ec2481465d76e31468264 100644 (file)
@@ -14,9 +14,10 @@ return (1, $self->msg('e5')) if $self->priv < 5;
 return (1, $self->msg('e12')) if !$f[0];
 
 my $call = uc $f[0];
-my $dxchan = DXChannel->get($call);
-return (1, $self->msg('e10', $call)) unless $dxchan;
-return (1, $self->msg('e13', $call)) unless $dxchan->is_ak1a();
+my $ref = DXCluster->get_exact($call);
+my $dxchan = $ref->dxchan if $ref;
+return (1, $self->msg('e10', $call)) unless $ref;
+return (1, $self->msg('e13', $call)) unless $ref->isa('DXNode');
 
 
 my ($spots, $wwv) = $f[1] =~ m{(\d+/\d+)} if $f[1];