fix @bbs syntax
[spider.git] / cmd / send.pl
index ce8db2d0c2cedaf8d247842c5bd5fdaf4090ed39..d6e502cd4f1d82840335fe5bed9c1a1ec389adde 100644 (file)
@@ -92,8 +92,16 @@ if ($self->state eq "prompt") {
                        ;
                } elsif ($notincalls && ($f eq 'RR')) {
                        $loc->{rrreq} = '1';
-               } elsif ($f eq '@') {     # this is bbs syntax, for now lose the rest
-                       last;
+               } elsif ($f eq '<' && @f) {     # this is bbs syntax  for from call
+                       $loc->{from} = uc shift @f;
+               } elsif ($f eq '@' && @f) {       # this is bbs syntax, for send it 'to node'
+                       ;
+               } 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 ?
@@ -138,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);