2 # merge spot and wwv databases
4 # Copyright (c) 1998 - Dirk Koopman G1TLH
9 my ($self, $line) = @_;
10 my @f = split /\s+/, $line;
13 return (1, $self->msg('e5')) if $self->priv < 5;
14 return (1, $self->msg('e12')) if !$f[0];
17 return (1, $self->msg('e11')) if $call eq $main::mycall;
19 my $ref = DXCluster->get_exact($call);
20 my $dxchan = $ref->dxchan if $ref;
21 return (1, $self->msg('e10', $call)) unless $ref;
22 return (1, $self->msg('e13', $call)) unless $ref->isa('DXNode');
25 my ($spots, $wwv) = $f[1] =~ m{(\d+)/(\d+)} if $f[1];
26 $spots = 10 unless $spots;
29 # I know, I know - but is there any point?
30 $dxchan->send("PC25^$call^$main::mycall^$spots^$wwv^");
32 return (1, $self->msg('merge1', $call, $spots, $wwv));