[vhffs-dev] [svn] commit: r223 - /trunk/vhffs-listengine/src/listengine.pl

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Author: florent
Date: Tue Aug 22 21:48:35 2006
New Revision: 223

Log:
Correction d'un bug dans listengine :
 - si la liste est "open", les messages partirons en modération
   si l'option modération est activée.


Modified:
    trunk/vhffs-listengine/src/listengine.pl

Modified: trunk/vhffs-listengine/src/listengine.pl
==============================================================================
--- trunk/vhffs-listengine/src/listengine.pl (original)
+++ trunk/vhffs-listengine/src/listengine.pl Tue Aug 22 21:48:35 2006
@@ -471,13 +471,7 @@
     my $in_moderation = 0;
     
 
-    
-    # If the list is in open_post, we authorize the mail
-    if( $list->get_open_post == 1 )
-    {
-	$authorized = 1;
-    }
-    elsif( $list->get_moderated == 1 )
+    if( $list->get_moderated == 1 )
     {
        
     	$in_moderation = 1;
@@ -494,6 +488,12 @@
 	    }
 	}
 
+    }
+    elsif( $list->get_open_post == 1 )
+    {
+        # If the list is not moderated, and open_post,
+        # we authorize the mail
+	$authorized = 1;
     }
     else
     {




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/