Mercurial > noffle
changeset 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 | bed46fc935df |
children | 09ca6eb5c7ff |
files | ChangeLog src/post.c |
diffstat | 2 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue May 01 19:14:08 2001 +0100 +++ b/ChangeLog Wed May 09 12:15:31 2001 +0100 @@ -1,3 +1,9 @@ +Tue May 8 2001 Jim Hague <jim.hague@acm.org> + + * 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. + Tue May 01 2001 Markus Enzenberger <me@markus-enzenberger.de> * src/server.c: do not search all groups if group does not
--- 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; }