From 083f6979585e3d38a20ede2cdbb9867ff99c06e7 Mon Sep 17 00:00:00 2001 From: ptt Date: Fri, 16 May 2003 19:38:05 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@860 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- innbbsd/bbsnnrp.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'innbbsd') diff --git a/innbbsd/bbsnnrp.c b/innbbsd/bbsnnrp.c index 11993629..6682f7ba 100644 --- a/innbbsd/bbsnnrp.c +++ b/innbbsd/bbsnnrp.c @@ -293,7 +293,7 @@ char **argv; signal(SIGHUP, doterm); signal(SIGPIPE, doterm); - readnews(&BBSNNRP); + readnews(server, &BBSNNRP); writerc(&BBSNNRP); closesockets(); @@ -1010,7 +1010,8 @@ ULONG *low, *high; } -readnews(bbsnnrp) +readnews(server,bbsnnrp) +char *server; nnrp_t *bbsnnrp; { int i; @@ -1074,7 +1075,13 @@ nnrp_t *bbsnnrp; printf("got reply %d %ld %ld\n",code, low, high); #endif artcount = 0; - if (code == NNRPGroupOK) { + if (code == 411) + { + FILE *ff=fopen(BBSHOME"/innd/log/badgroup.log","a"); + fprintf(ff,"%s\t%-.*s\r\n", server, rcptr->namelen, rcptr->nameptr); + fclose(ff); + } + else if (code == NNRPGroupOK) { int xcount; ULONG maxartno= rcptr->high; int isCancelControl = (strncmp(rcptr->nameptr,"control",rcptr->namelen)==0) -- cgit v1.2.3