X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Freply.pl;h=6982eb599e57993faf17a618f292388c83e4b846;hb=fe322eb02369fded6defe0f3fa7ae6530496ef9c;hp=c8ef615d12a7c3776450ad5432ae9e2f0bc66b88;hpb=fcf64c5323c6ae59283dda0e6675b0e24cdfa08c;p=spider.git diff --git a/cmd/reply.pl b/cmd/reply.pl index c8ef615d..6982eb59 100644 --- a/cmd/reply.pl +++ b/cmd/reply.pl @@ -63,12 +63,11 @@ if ($self->state eq "prompt") { if (!($oref = DXMsg::get($self->lastread))) { delete $self->{loc}; return (1, $self->msg('m5')); - #return (1, "need a message number"); } } # now save all the 'to' callsigns for later - my $to = $oref->from; + my $to = $loc->{private} ? $oref->from : $oref->to; $loc->{to} = [ $to ]; # to is an array $loc->{subject} = $oref->subject; $loc->{subject} = "Re: " . $loc->{subject} if !($loc->{subject} =~ /^Re:\s/io); @@ -77,10 +76,6 @@ if ($self->state eq "prompt") { # keep calling me for every line until I relinquish control $self->func("DXMsg::do_send_stuff"); $self->state('sendbody'); - #push @out, $self->msg('sendsubj'); -# push @out, "Reply to: $to"; -# push @out, "Subject : $loc->{subject}"; -# push @out, "Enter Message /EX (^Z) to send or /ABORT (^Y) to exit"; push @out, $self->msg('m6', $to); push @out, $self->msg('m7', $loc->{subject}); push @out, $self->msg('m8');