From d69ba0bb348ffe87f0ead8497467b0aec5a10751 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sat, 10 Apr 2010 00:49:24 +0200 Subject: [PATCH] Change: Authenticate only if $NNTPUser is set. Signed-off-by: Thomas Hochstein --- yapfaq.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yapfaq.pl b/yapfaq.pl index 5b7160a..bce9684 100644 --- a/yapfaq.pl +++ b/yapfaq.pl @@ -305,7 +305,7 @@ sub post { my $NewsConnection = Net::NNTP->new($NNTPServer, Reader => 1) or die "$0: E: Can't connect to news server '$NNTPServer'!\n"; - $NewsConnection->authinfo ($NNTPUser, $NNTPPass); + $NewsConnection->authinfo ($NNTPUser, $NNTPPass) if (defined($NNTPUser)); $NewsConnection->post(); $NewsConnection->datasend (@$ArticleR); $NewsConnection->dataend();