Path: necntc!adelie!axiom!linus!decvax!tektronix!cae780!hplabs!sdcrdcf!lwall From: lwall@sdcrdcf.UUCP (Larry Wall) Newsgroups: comp.sources.bugs,news.software.b Subject: rn 4.3 patch #40 Message-ID: <3957@sdcrdcf.UUCP> Date: 27 Jan 87 01:16:15 GMT Reply-To: lwall@sdcrdcf.UUCP (Larry Wall) Distribution: world Organization: System Development Corporation R&D, Santa Monica Lines: 157 Xref: necntc news.software.b:215 System: rn version 4.3 Patch #: 40 Priority: HIGH Subject: moderated groups work differently now From: lwall@sdcrdcf (Larry Wall) Description: As part of the newsgroup renaming scheme, moderated groups will no longer be of the form mod.*. In order that users know when they are in a moderated group, rn should say whether a given group is moderated. Additionally, the code in Pnews to handle moderated groups is now obsolete, since inews handles it. Fix: To fix Pnews to be compatible with 2.11 inews, just remove your /usr/lib/news/moderators file, or equivalent, if you have one. If you haven't installed 2.11 yet, leave your moderators file there until you install 2.11, which will be soon. (!!!!) To fix rn, install the following patches and recompile. From rn, say "| patch -d DIR", where DIR is your rn source directory. Outside of rn, say "cd DIR; patch Patch #: 40 Index: art.c *** /tmp/,RCSt1026463 Mon Jan 26 16:50:34 1987 --- art.c Mon Jan 26 16:37:40 1987 *************** *** 25,30 #include "common.h" #include "rn.h" #include "ngstuff.h" #include "head.h" #include "cheat.h" #include "help.h" --- 25,31 ----- #include "common.h" #include "rn.h" #include "ngstuff.h" + #include "ngdata.h" #include "head.h" #include "cheat.h" #include "help.h" *************** *** 161,166 #endif if (htype[NGS_LINE].ht_flags & HT_HIDE) printf(" in %s", ngname); fputs(":\n",stdout) FLUSH; } start_header(art); --- 162,168 ----- #endif if (htype[NGS_LINE].ht_flags & HT_HIDE) printf(" in %s", ngname); + fputs(moderated,stdout); fputs(":\n",stdout) FLUSH; } start_header(art); Index: ngdata.c *** /tmp/,RCSt1026442 Mon Jan 26 16:49:41 1987 --- ngdata.c Mon Jan 26 16:43:23 1987 *************** *** 17,22 #include "intrp.h" #include "final.h" #include "rcln.h" #include "INTERN.h" #include "ngdata.h" --- 17,23 ----- #include "intrp.h" #include "final.h" #include "rcln.h" + #include "util.h" #include "INTERN.h" #include "ngdata.h" *************** *** 89,94 #else abs1st = tmp; #endif } #endif return atol(tmpbuf+len+1); --- 90,102 ----- #else abs1st = tmp; #endif + if (!in_ng) { + for (s++; isdigit(*s); s++) ; + while (isspace(*s)) s++; + moderated = (!*s || *s == 'y' + ? nullstr + : getval("MODSTRING"," (moderated)") ); + } } #endif return atol(tmpbuf+len+1); Index: ngdata.h *** /tmp/,RCSt1026500 Mon Jan 26 16:51:29 1987 --- ngdata.h Mon Jan 26 16:25:11 1987 *************** *** 21,26 # endif #endif void ngdata_init(); ART_NUM getngsize(); --- 21,27 ----- # endif #endif + EXT char *moderated; void ngdata_init(); ART_NUM getngsize();