make sure that @WWW is completely ignored
[spider.git] / cmd / send.pl
index ce8db2d0c2cedaf8d247842c5bd5fdaf4090ed39..c3ff858362d1db997fe71a5550cc33751b27ca5b 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'
+                       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 ?
@@ -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);