handle g1tlh@www type things
[spider.git] / cmd / send.pl
index d6e502cd4f1d82840335fe5bed9c1a1ec389adde..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;
@@ -95,7 +95,7 @@ if ($self->state eq "prompt") {
                } 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