pullnews and Net:NNTP

Russ Allbery rra at stanford.edu
Mon Apr 28 16:47:13 UTC 2008


Julien ÉLIE <julien at trigofacile.com> writes:

>> There is now "unless(exists $arg{Reader} && $arg{Reader} == 0)" before
>> the call to $obj->reader().
>>
>> -    my %localopts = ("Port" => "$localPort");
>> +    my %localopts = ("Port" => "$localPort", "Reader" => 0);
>>    $localcxn = Net::NNTP->new($localServer, %localopts) ||
>>        die "can't connect to server $localServer\n" ;
>>
>> but it is not necessary.
>
> It is in fact necessary to add the "Reader" => 0 option.
> It is an "unless" statement!

Yeah, I'd been meaning to do that for a while and remove all the
workaround code for older Net::NNTP.  I think it's safe to assume that
everyone has a current version now (although you may want to add a version
to the use line so that it errors out properly with too old of a version).

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.


More information about the inn-workers mailing list