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