Release 0.6.1
[usenet/yapfaq.git] / yapfaq.pl
index ac9764e..be8762c 100644 (file)
--- a/yapfaq.pl
+++ b/yapfaq.pl
@@ -12,7 +12,7 @@
 # It can be redistributed and/or modified under the same terms under 
 # which Perl itself is published.
 
-my $Version = "0.6-unreleased";
+my $Version = "0.6.1";
 
 my $NNTPServer = "localhost";
 my $NNTPUser = "";
@@ -151,7 +151,7 @@ sub readconfig{
     unless($$Config[$i]{'posting-frequency'} =~ /^\s*\d+\s*[dwmy]\s*$/) {
       $Error .= "E: The Posting-frequency for your project \"$$Config[$i]{'name'}\" is invalid.\n"
     }
-    unless($$Config[$i]{'expires'} =~ /^\s*\d+\s*[dwmy]\s*$/) {
+    unless(!$$Config[$i]{'expires'} || $$Config[$i]{'expires'} =~ /^\s*\d+\s*[dwmy]\s*$/) {
       $$Config[$i]{'expires'} = '3m'; # set default: 3 month
          warn "$0: W: The Expires for your project \"$$Config[$i]{'name'}\" is invalid - set to 3 month.\n";
     }
@@ -266,6 +266,9 @@ sub postfaq {
   }
   post(\@Article);
 
+  # Test mode?
+  return if($Options{'t'});
+
   if($Options{'v'}) {
     print "$$ActName: Save status information.\n";
   }
This page took 0.010798 seconds and 4 git commands to generate.