diff src/post.c @ 179:f973675760dc noffle

[svn] * src/post.c: If post-locally is set, only do immediate local posting on groups with status 'y'. We don't want to post locally articles destined for the moderator of a moderated group.
author bears
date Wed, 09 May 2001 12:15:31 +0100
parents 945501c95a4e
children fed1334d766b
line wrap: on
line diff
--- a/src/post.c	Tue May 01 19:14:08 2001 +0100
+++ b/src/post.c	Wed May 09 12:15:31 2001 +0100
@@ -1,7 +1,7 @@
 /*
   post.c
 
-  $Id: post.c 230 2000-10-27 12:35:51Z bears $
+  $Id: post.c 278 2001-05-09 11:15:31Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -520,7 +520,14 @@
 	 grp = Itl_next( article.newsgroups ) )
     {
 	local = Grp_local( grp );
-	if ( ! ( postLocal || local ) )
+
+	/*
+	 * Only post locally to external group if that group's post
+	 * status is 'y'. Otherwise retrieve from upstream server -
+	 * for example, we don't want to immediately post locally articles
+	 * destined for the moderator of a moderated group.
+	 */
+	if ( ! local && ( ! postLocal || Grp_postAllow( grp ) != 'y' ) )
 	    continue;
 	err = addToGroup( grp ) && err;
     }