diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-17 03:38:05 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-17 03:38:05 +0800 |
commit | 083f6979585e3d38a20ede2cdbb9867ff99c06e7 (patch) | |
tree | 27baf76f1190726d7559cb1a6ff095ed0cd5e9e0 | |
parent | cd9c701afe261511d6f22d00ce883a4bf952f453 (diff) | |
download | pttbbs-083f6979585e3d38a20ede2cdbb9867ff99c06e7.tar pttbbs-083f6979585e3d38a20ede2cdbb9867ff99c06e7.tar.gz pttbbs-083f6979585e3d38a20ede2cdbb9867ff99c06e7.tar.bz2 pttbbs-083f6979585e3d38a20ede2cdbb9867ff99c06e7.tar.lz pttbbs-083f6979585e3d38a20ede2cdbb9867ff99c06e7.tar.xz pttbbs-083f6979585e3d38a20ede2cdbb9867ff99c06e7.tar.zst pttbbs-083f6979585e3d38a20ede2cdbb9867ff99c06e7.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@860 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | innbbsd/bbsnnrp.c | 13 |
1 files changed, 10 insertions, 3 deletions
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) |