home *** CD-ROM | disk | FTP | other *** search
- *** /tmp/,RCSt1a17184 Wed Feb 13 11:37:06 1991
- --- ihave.c Wed Feb 13 11:24:55 1991
- ***************
- *** 1,8 ****
- #ifndef lint
- ! static char *sccsid = "@(#)$Header: ihave.c,v 1.18 90/12/23 11:49:59 vixie Locked $";
- #endif
-
- #include "common.h"
-
- #ifdef LOG
- int ih_accepted;
- --- 1,11 ----
- #ifndef lint
- ! static char *sccsid = "@(#)$Header: ihave.c,v 1.18 90/12/23 11:49:59 sob Exp $";
- #endif
-
- #include "common.h"
- + #ifdef MSGID
- + #include "msgid.h"
- + #endif /*MSGID*/
-
- #ifdef LOG
- int ih_accepted;
- ***************
- *** 23,28 ****
- --- 26,32 ----
- char errbuf[2 * NNTP_STRLEN];
- int retcode;
- register char *cp;
- + int dup = 0;
-
- if (!canxfer)
- {
- ***************
- *** 42,49 ****
- return;
- }
-
- ! cp = gethistent(argv[1], 1);
- ! if (cp != NULL) {
- printf("%d Got it.\r\n", ERR_GOTIT);
- (void) fflush(stdout);
- #ifdef LOG
- --- 46,66 ----
- return;
- }
-
- ! #ifdef MSGID
- ! if (msgid(argv[1], MADD))
- ! dup++;
- ! #endif /*MSGID*/
- !
- ! if (!dup) {
- ! cp = gethistent(argv[1], 1);
- ! if (cp != NULL) {
- ! dup++;
- ! #ifdef MSGID
- ! (void) msgid(argv[1], MOLD);
- ! #endif /*MSGID*/
- ! }
- ! }
- ! if (dup) {
- printf("%d Got it.\r\n", ERR_GOTIT);
- (void) fflush(stdout);
- #ifdef LOG
-