fixed merge command
[spider.git] / cmd / merge.pl
index 51620b603857a3eae87ec2481465d76e31468264..c5f31f5afab87e1744cca6b6cec687439dcff200 100644 (file)
@@ -8,19 +8,20 @@
 
 my ($self, $line) = @_;
 my @f = split /\s+/, $line;
+my $call = uc $f[0];
 
 # check for callsign
 return (1, $self->msg('e5')) if $self->priv < 5;
 return (1, $self->msg('e12')) if !$f[0];
+return (1, $self->msg('e11')) if $call eq $main::mycall;
 
-my $call = uc $f[0];
 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];
+my ($spots, $wwv) = $f[1] =~ m{(\d+)/(\d+)} if $f[1];
 $spots = 10 unless $spots;
 $wwv = 5 unless $wwv;