home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / DC001.MOD < prev    next >
Text File  |  1995-06-17  |  4KB  |  145 lines

  1. Dale Cooper #1 @10118
  2. Mon Jun 12 12:31:25 1995
  3. ╔══════════════════════════════════════════════════════════════════════════╗
  4. ║ MOD     :DC001.MOD RE: Titles in Posts                                   ║
  5. ║ DATE    :12/05/95                                                        ║
  6. ║ USAGE   :WWIV 4.24                                                       ║
  7. ║ VERSION :C ( I dunno just that it's the 4.24 Update)                     ║
  8. ║ Descrip.:Read extened info below                                         ║
  9. ║ Diff.   :2  (on a scale of 1-10, 1 being easy)                           ║
  10. ║ Author  :Dale Cooper   1@10118WWIVnet 1@1 DINER.COM                      ║
  11. ║ BBS     :The Double R Diner                                              ║
  12. ╚══════════════════════════════════════════════════════════════════════════╝
  13. │─   [ Modding codes ]    │ WARNING!!! I Dale Cooper aka Raymond Morse take
  14. │                         │ take no responsiblity what so ever for what this
  15. │ =    Existing Code      │ might do to your system. I did not force you to
  16. │ +    Add This Code      │ use this. All code is copywright (c) Wayne Bell,
  17. │ -    Delete This Code   │ WSS. Any use of this code to non-registered
  18. │ %    Modify This Code   │ sysops is a breach of copywright. In other words
  19. │ .-.. Morse Code         │ register already if you haven't. :)
  20. ╚─────────────────────────╝
  21.  
  22.  
  23.   Desc :  This mod was something I always wanted but could never find a mod
  24.           that did just this. What this mod does is that when replying to a
  25.           post or e-mail it will look something like the below.
  26.  
  27.           Enter Subject or Press [Return] for - RE: 4.24 Mods
  28.           Title:
  29.  
  30.          Simple mod and works well too, I have tested this for along time,
  31.          and with 4.24 coming out it was just a small little change.
  32.  
  33. The Mod.......................
  34.  
  35. Step 1 : Open MSGBASE.C and search for the marked lines.
  36.  
  37. = }
  38. = for (i=0; i<maxli; i++)
  39. =   lin[i*LEN]=0;
  40. = ro[0]=0;
  41. =  }
  42. =
  43. =  nl();
  44. =  helpl=6;
  45. =  if (okansi()) {                   //Search For this
  46.  
  47. Step 2 : Right after the above (okansi()) line add the below block.
  48. /* Begin DC001.MOD */
  49.  if (irt[0]) {
  50.    if (strnicmp(stripcolors(irt),"Re:",3)!=0)
  51.  npr("7Enter Subject or Press 9[1Return9] 7for i- 1REi: 9%-32.32s",irt);0
  52.   else
  53.  npr("7Enter Subject or Press 9[1Return9] 7for i-  9%-32.32s",irt);0
  54.  }
  55.  nl();
  56.  prt(2,"7Subject 9: ");0
  57.  mpl(60);
  58.  inputl(title,60);
  59.  if (irt[0]) {
  60.    if (title[0]==0) {
  61.    if (strnicmp(stripcolors(irt),"Re:",3)!=0)
  62.     sprintf(title,"Re: %s",irt);
  63.    else
  64.     sprintf(title,"%s",irt);
  65.   }
  66. }
  67.  if ((title[0]==0) && (needtitle)) {
  68.  pl(get_string(14));
  69.  m.stored_as=0xffffffff;
  70.  *m1=m;
  71.  if (!fsed)
  72.    farfree((void *)lin);
  73.  setiia(oiia);
  74.  if (menu_on())
  75.    rip_restoreall();
  76.  return;
  77.    }
  78. }
  79.   } else {
  80.  if (irt[0]) {
  81.    if (strnicmp(stripcolors(irt),"Re:",3)!=0)
  82.  npr("Enter Subject or Press [Return] for - RE: %-32.32s",irt);
  83.    else
  84.  npr("Enter Subject or Press [Return] for -  %-32.32s",irt);
  85.  }
  86.  nl();
  87.  outstr("Subject :");
  88.  inputl(title,60);
  89. if (irt[0]) {
  90.    if (title[0]==0) {
  91.    if (strnicmp(stripcolors(irt),"Re:",3)!=0)
  92.    sprintf(title,"Re: %s",irt);
  93.    else
  94.    sprintf(title,"%s",irt);
  95.   }
  96. }
  97.  if ((title[0]==0) && (needtitle)) {
  98.  pl(get_string(14));
  99.  m.stored_as=0xffffffff;
  100.  *m1=m;
  101.  if (!fsed)
  102.    farfree((void *)lin);
  103.  setiia(oiia);
  104.  if (menu_on())
  105.    rip_restoreall();
  106.  return;
  107.    }
  108.   }
  109. /* End DC001.MOD*/
  110.  
  111. Step 3 : Now either delete the below lines or comment them out.
  112.  
  113. /* Delete or Comment out from here
  114.  prt(2,get_string(1006));
  115.  mpl(60);
  116.  inputl(title,60);
  117.   } else {
  118.  pl(get_string(626));
  119.  outstr(get_string(1006));
  120.  inputl(title,60);
  121.   }
  122.   if ((title[0]==0) && (needtitle)) {
  123.  pl(get_string(14));
  124.  m.stored_as=0xffffffff;
  125.  *m1=m;
  126.  if (!fsed)
  127.    bbsfree((void *)lin);
  128.  setiia(oiia);
  129.  if (menu_on())
  130.    rip_restoreall();
  131.  return;
  132.   }
  133.  to here. */
  134.  
  135. Step 4: Save MSGBASE.C and recompile your done.
  136.  
  137. Couldn't be much simpler to install. Let me know if you have any trouble or
  138. if you have ideas for something in this mod.
  139.  
  140. Dale Cooper
  141. dcooper@winternet.com
  142. 1@10118WWIVnet
  143. 1@1    DINER.COM
  144. 1:282/2085 FIDOnet
  145.