handle g1tlh@www type things
[spider.git] / cmd / send.pl
index a0a64ffad79713eda70783b4b199c2f1b9980352..3bc2a6b3498bdde9b94751272b7e20e3c2207a3e 100644 (file)
@@ -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;
@@ -94,8 +94,8 @@ if ($self->state eq "prompt") {
                        $loc->{rrreq} = '1';
                } 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 origin
-                       $loc->{origin} = 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