home *** CD-ROM | disk | FTP | other *** search
- Snorkel #1 @2100
- Fri Jun 30 12:26:02 1995
- This upgrade to M&M007D is intended only for those sysops who have already
- installed the "D" revision of this mod. If you have never installed
- M&M007D.MOD, then look the complete mod, with corrections, under the file name
- 1M&M007D611.MOD0.
-
- ==============================================================================
-
- ┌────────────┐
- │ XFEROVL2.C │
- └────────────┘
-
-
- Find "int try_to_download(char *s, int dn,int title)" and make the following
- changes:
-
-
- i1=printfileinfo(&u,dn);
- if ((strncmp(u.filename,"WWIV4",5)==0) &&
- (!(sysinfo.flags & OP_FLAGS_NO_EASY_DL))) /* search for */
- i1=1;
- else {
- if ((!(u.mask & mask_free_file)) && /* ADD THIS LINE!!! */
- if ((!(u.mask & mask_free_file)) || /* DELETE THIS LINE */
- (!(r.mask & mask_free_dir)))
- if (!ratio_ok()) {
- rip_restoreall();
- return(-1);
- }
- }
- if (i1) {
-
-
-
- Still a little further down in the function, make the following change:
-
-
- sent=0; /* search for */
- abort=0;
- if (i1==-1)
- send_file(s1,&sent,&abort,u.filetype,u.filename,dn, -2L);
- else
- send_file(s1,&sent,&abort,u.filetype,u.filename,dn, u.numbytes);
- if (sent) {
- if ((!(u.mask & mask_free_file)) && /* ADD THIS LINE!!! */
- if ((!(u.mask & mask_free_file)) || /* DELETE THIS LINE */
- (!(r.mask & mask_free_dir))) {
- ++thisuser.downloaded;
- thisuser.dk += (int) (bytes_to_k(u.numbytes));
- }
- ++u.numdloads;
-
-
-
- Now find "void tag_it(void)" and make the following change:
-
-
- if (numbatch>=sysinfo.max_batch) { /* search for */
- ansic(6);
- outstr(get_string(1330));
- npr("%d",sysinfo.max_batch);
- pl(get_string(1331));
- bad=1;
- }
- r=directories[udir[curdir].subnum];
- if ((!(filelist[i].u.mask & mask_free_file)) && /* ADD THIS LINE!!! */
- if ((!(filelist[i].u.mask & mask_free_file)) || /* DELETE THIS LINE */
- (!(r.mask & mask_free_dir)))
- if ((syscfg.req_ratio>0.0001)
- && (ratio()<syscfg.req_ratio)
-
-
-
- ==============================================================================
- ┌─────────┐
- │ BATCH.C │
- └─────────┘
-
-
- Find "void downloaded(char *fn, long cps)" and make the following change:
-
-
- void downloaded(char *fn, long cps) /* search for */
- {
- int i,i1,f;
- uploadsrec u;
- char s[161];
- userrec ur;
- directoryrec r;
-
- for (i1=0; i1<numbatch; i1++) {
- if ((strcmp(fn,batch[i1].filename)==0) && (batch[i1].sending)) {
- dliscan1(batch[i1].dir);
- r=directories[batch[i1].dir];
- i=recno((batch[i1].filename));
- if (i>0) {
- f=sh_open(dlfn,O_RDWR | O_BINARY | O_CREAT, S_IREAD | S_IWRITE);
- SETREC(f,i);
- sh_read(f,(void *)&u,sizeof(uploadsrec));
- if ((!(u.mask & mask_free_file)) && /* ADD THIS LINE!!! */
- if ((!(u.mask & mask_free_file)) || /* DELETE THIS LINE */
- (!(r.mask & mask_free_dir))) {
- ++thisuser.downloaded;
- thisuser.dk += (int) (bytes_to_k(u.numbytes));
- }
- ++u.numdloads;
- SETREC(f,i);
-
-
-
-
- Find "void batchdl(int mode)" and make the following change:
-
-
- case 'D': /* search for */
- if (numbatchdl==0) {
- nl();
- pl(get_string(882));
- nl();
- done=1;
- break;
- }
-
- nl();
- for (i1=0; i1<numbatch; i1++) {
- dliscan1(batch[i1].dir);
- r=directories[batch[i1].dir];
- i2=recno((batch[i1].filename));
- f=sh_open(dlfn,O_RDWR | O_BINARY | O_CREAT, S_IREAD | S_IWRITE);
- SETREC(f,i2);
- sh_read(f,(void *)&u,sizeof(uploadsrec));
- f=sh_close(f);
- if ((!(u.mask & mask_free_file)) && /* ADD THIS LINE!!! */
- if ((!(u.mask & mask_free_file)) || /* DELETE THIS LINE */
- (!(r.mask & mask_free_dir)))
- if (!ratio_ok()) {
- nl();
- pl(get_string(883));
- nl();
- done=1;
- break;
- }
- }
- nl();
- prt(5,get_string(877));
-
-
-
-
- Again, this code is ONLY for those sysops who have already installed
- M&M007D.MOD. The complete mod, with the corrections, is available under the
- file name 1M&M007D611.MOD0.
-
- 1 °0
- 1 °0
- 1 °0
- 1°0
- 4Snorkel 1@21000
-