X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fsend.pl;h=59b535f73fae60da27fe6388345d4dfa9723752c;hb=40310b181de51fd4917e74f4672aa31a5f255c34;hp=3c08ddbbb483bac93a733cfe4f7e81ccb64613c5;hpb=e76e5e7e943c5af1d984ec60ad80524424420fa2;p=spider.git diff --git a/cmd/send.pl b/cmd/send.pl index 3c08ddbb..59b535f7 100644 --- a/cmd/send.pl +++ b/cmd/send.pl @@ -32,7 +32,7 @@ $loc->{rrreq} = '0'; if ($self->state eq "prompt") { - my @f = split /\s+/, $line; + my @f = split /\b/, $line; # any thing after send? return (1, $self->msg('e6')) if !@f; @@ -92,6 +92,16 @@ if ($self->state eq "prompt") { ; } elsif ($notincalls && ($f eq 'RR')) { $loc->{rrreq} = '1'; + } elsif ($f eq '<' && @f) { # this is bbs syntax for from call + $loc->{from} = uc shift @f; + } elsif (($f =~ /^[\@\.\#]$/ || $f eq '.#') && @f) { # this is bbs syntax, for send it 'to node' + shift @f; + } elsif ($f =~ /^\$/) { # this is bbs syntax for a bid + next; + } elsif ($f =~ /^<\S+/) { # this is bbs syntax for from call + ($loc->{from}) = $f =~ /^<(\S+)$/; + } elsif ($f =~ /^\@\S+/) { # this is bbs syntax for origin + ($loc->{origin}) = $f =~ /^\@(\S+)$/; } else { # callsign ? @@ -136,6 +146,8 @@ if ($self->state eq "prompt") { $self->func("DXMsg::do_send_stuff"); $self->state('send1'); push @out, $self->msg('m1'); +} else { + push @out, $self->msg('m17', $self->state); } return (1, @out);