2. handle @gb7tlh.#35.eu type addresses as well
[spider.git] / cmd / send.pl
index c3ff858362d1db997fe71a5550cc33751b27ca5b..59b535f73fae60da27fe6388345d4dfa9723752c 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,7 +94,7 @@ 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 send it 'to node'
+               } elsif (($f =~ /^[\@\.\#]$/ || $f eq '.#') && @f) {       # this is bbs syntax, for send it 'to node'
                        shift @f;
                } elsif ($f =~ /^\$/) {     # this is bbs syntax  for a bid
                        next;