X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fsend.pl;h=3bc2a6b3498bdde9b94751272b7e20e3c2207a3e;hb=214add54f06130d9bbfce9045a814f6599f30812;hp=d6e502cd4f1d82840335fe5bed9c1a1ec389adde;hpb=ba97b5ce3899461ec8b630cc305c58eff36d301f;p=spider.git diff --git a/cmd/send.pl b/cmd/send.pl index d6e502cd..3bc2a6b3 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; @@ -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