home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / NI-005.ZIP / NI-005.424 < prev   
Encoding:
Text File  |  1995-07-11  |  2.8 KB  |  69 lines

  1. Johnny Five #26 @15301
  2. Fri Jul 07 13:06:50 1995
  3. ╒NI Header (c)══════════════════════════════════════════════════════════════╕
  4. │       N O V A   I N D U S T R I E S  B B S  9 0 4 - 2 6 0 - 2 3 9 4       │
  5. ╞═══════════════════════════════════════════════════════════════════════════╡
  6. │ Mod Name  : NI-005.424          Author: Johnny Five 1 @1 ExcelNet         │
  7. │                                                     1 @15333 WWIVnet      │
  8. │ Difficulty: Can you pick your nose?                 1 @9411 TFAlink       │
  9. │                                                     1 @4000 COWBOYnet     │
  10. │ Version   : 4.24   Date: 06-04-95                   and many others       │
  11. │                                                                           │
  12. │ Files Affected: MSGBASE1.C                                                │
  13. │                                                                           │
  14. │ Description: Users can download messages from read message prompt         │
  15. │ when they type 'E'                                                        │
  16. ╘═══════════════════════════════════════════════════════════════════════════╛
  17.  
  18. This Mod was originally by Darrell Mobley for v4.20
  19. Thanx goes to WhiteHeart for pointing out a little bug
  20.  
  21.  
  22. = Already there
  23. + add
  24. - Remove
  25. * change
  26.  
  27.  
  28. Step 1: B(ack).U(p).Y(our).S(ource).
  29.  
  30.  
  31. Step 2: load up MSGBASE1.C and look for "case 'E':".  Replace your entire case
  32. 'E' with this one: 
  33.  
  34.               case 'E':
  35.                 if (so()) {
  36.                   if ((msgnum>0) && (msgnum<=nummsgs)) {
  37.                     b=readfile(&(get_post(msgnum)->msg),(subboards[curlsub].filename),&len);
  38.                     extract_out(b,len, get_post(msgnum)->title);
  39.                   }
  40.                 } else {
  41.                   if ((msgnum>0) && (msgnum<=nummsgs)) {
  42.                     b=readfile(&(get_post(msgnum)->msg),(subboards[curlsub].filename),&len);
  43.                     nl();
  44.                     pl("Download message.");
  45.                     nl();
  46.                     prt(2,"Filename: ");
  47.                     input(s1,12);
  48.                     if(!okfn(s1))
  49.                       break;
  50.                     sprintf(s,"%s%s",syscfg.tempdir,s1);
  51.                     unlink(s);
  52.                     i=open(s,O_RDWR | O_BINARY | O_CREAT, S_IREAD | S_IWRITE);
  53.                     write(i,(void *)b,len);
  54.                     close(i);
  55.                     farfree(b);
  56.                     send_file(s,&i,&i1,0,s,-1,len);
  57.                     nl();
  58.                     if(i){
  59.                       pl("Message download successful.");
  60.                       sysoplog("Downloaded Message");
  61.                     } else
  62.                       pl("Message download aborted.");
  63.                   } 
  64.                 }
  65.                 break;
  66.  
  67. SAVE AND COMPILE!
  68.  
  69.