home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / EDIT12.MOD < prev    next >
Text File  |  1995-07-03  |  6KB  |  154 lines

  1. Apollo #1 @11138
  2. Fri Jun 30 01:25:39 1995
  3. ┌──────────────────────────────────────────────────────Filo─Header─(c)────┐
  4. │ Mod Name: Edit12.424    Mod Authors: Editor 149                         │
  5. │ Difficulty: █████▒▒▒▒▒(3.5/10)       @11138.WWIVNet                     │
  6. │ WWIV Version: v4.24                  @2939 TERRANet, IceNet, SierraLink │
  7. │ Date: 07/15/94                       @2938 CyberNet                     │
  8. │ Updated for v4.24: 06/27/95.                                            │
  9. │ Files Affected: MSGBASE.C                                               │
  10. │ Description: Allows you to Re-Use the title of the message you are      │
  11. │ replying to, Allows "Built-In" Titles on Form Letters.                  │
  12. └─────────────────────────────────────────────────────────────────────────┘
  13.  
  14. --> When you reply to a post or E-Mail, this shows RE: and the old title.
  15.     If you hit enter, it uses that as the title and eliminates the RE: line
  16.     inside the message.  If you hit anyother key, that key becomes the first
  17.     letter of the new title.
  18.  
  19. --> If you make the first line of your form letter start with "TI: ", then
  20.     the the next 54 characters of that line become the title, you can change
  21.     the title, or hit enter to accept it.  It makes form letters more
  22.     managable, I always use the same titles anyway!
  23.  
  24. Copyright Disclaimer:
  25. (c) 1995 Editor a.k.a #149@Retreat of the Gods  (209) 537-2808
  26. This mod is written for use by REGISTERED WWIV SysOps, as they are the only
  27. ones who should have the source code.  SysOps may freely upload this mod to
  28. any BBS or online service provided it is not edited in any way except to
  29. remove messge headers and/or taglines.  Shareware CDROM vendors are prohibited
  30. from distributing this mod without EXPRESS WRITTEN CONSENT from the author &
  31. Wayne Bell, Author of WWIV BBS Software.
  32. Parts of the code shown in this mod are:
  33.                 Copyright (C) 1988-1993 by Wayne Bell.
  34.  
  35. BACKUP your Source
  36.  
  37. LEGEND:
  38. = old code, Search for this
  39. + new code
  40. - Remove or comment out this line
  41.  
  42. Load up: MSGBASE.C
  43. Find: void load_workspace(char *fnx, int no_edit)
  44. = sh_read(i, (void *) b,l);
  45. = sh_close(i);
  46. = if (b[l-1]!=26)
  47. =   b[l++]=26;
  48. + if(strnicmp(b, "TI:", 3)==0) {      /* Edit12.424 */
  49. +   i=0;                              /* Edit12.424 */
  50. +   do {                              /* Edit12.424 */
  51. +     irt[i]=b[i];                    /* Edit12.424 */
  52. +     i++;                            /* Edit12.424 */
  53. +   } while(b[i]!=10 && b[i]!=13 && i<60);
  54. +                                     /* Edit12.424 */
  55. +   irt[i]=NULL;                      /* Edit12.424 */
  56. +   b=b+i;                            /* Edit12.424 */
  57. +   l-=i;                             /* Edit12.424 */
  58. + }                                   /* Edit12.424 */
  59. = sprintf(s,"%sINPUT.MSG",syscfgovr.tempdir);
  60. = i=sh_open(s,O_RDWR | O_CREAT | O_BINARY,S_IREAD | S_IWRITE);
  61. = sh_write(i, (void *)b,l);
  62. = sh_close(i);
  63.  
  64.  
  65. Find: void inmsg(messagerec *m1, char *title, int *anony, int needtitle,
  66.                 char *aux, int fsed, char *dest, int flags)
  67. =   for (i=0; i<maxli; i++)
  68. =     lin[i*LEN]=0;
  69. =   ro[0]=0;
  70. = }
  71. =
  72. = nl();
  73. = helpl=6;
  74. + if(strncmp(irt, "TI:", 3)!=0) {     /* Edit12.424 */
  75. = if (okansi()) {
  76. +     if(irt[0]) {                    /* Edit12.424 */
  77. +       if(strnicmp(stripcolors(irt), get_string(940), 3)!=0)
  78. +                                     /* Edit12.424 */
  79. +         npr("Enter Title or Press [Return] for:\r\n       4%s%-.54s0\r\n",
  80. +             get_string(940), irt);
  81. +                                     /* Edit12.424 */
  82. +       else                          /* Edit12.424 */
  83. +         npr("Enter Title or Press [Return] for:\r\n       4%-.60s0\r\n",
  84. +             irt);
  85. +                                     /* Edit12.424 */
  86. +     }                               /* Edit12.424 */
  87. =   prt(2,get_string(1006));
  88. =   mpl(60);
  89. =   inputl(title,60);
  90. = } else {
  91. +     if(irt[0]) {                    /* Edit12.424 */
  92. +       if(strnicmp(stripcolors(irt), get_string(940), 3)!=0)
  93. +                                     /* Edit12.424 */
  94. +         npr("Enter Title or Press [Return] for:\r\n       4%s%-.54s0\r\n",
  95. +             get_string(940), irt);
  96. +                                     /* Edit12.424 */
  97. +       else                          /* Edit12.424 */
  98. +         npr("Enter Title or Press [Return] for:\r\n       4%-.60s0\r\n",
  99. +             irt);
  100. +                                     /* Edit12.424 */
  101. +     }                               /* Edit12.424 */
  102. =   pl(get_string(626));
  103. =   outstr(get_string(1006));
  104. =   inputl(title,60);
  105. = }
  106. +   if (irt[0]) {                     /* Edit12.424 */
  107. +     if (title[0]==0) {              /* Edit12.424 */
  108. +       if (strnicmp(stripcolors(irt), get_string(940), 3)!=0) {
  109. +                                     /* Edit12.424 */
  110. +         sprintf(title, "%s%s", get_string(940), irt);
  111. +                                     /* Edit12.424 */
  112. +         irt[0]=0;                   /* Edit12.424 */
  113. +       } else {                      /* Edit12.424 */
  114. +         sprintf(title, "%s", irt);  /* Edit12.424 */
  115. +         irt[0]=0;                   /* Edit12.424 */
  116. +       }                             /* Edit12.424 */
  117. +     }                               /* Edit12.424 */
  118. =   }
  119. + } else {                            /* Edit12.424 */
  120. +   strcpy(title, irt+4);             /* Edit12.424 */
  121. +   npr("2%s 4%.54s0\n\r", get_string(1006), title);
  122. +                                     /* Edit12.424 */
  123. +   irt[0]=0;                         /* Edit12.424 */
  124. + }                                   /* Edit12.424 */
  125. = if ((title[0]==0) && (needtitle)) {
  126. =   pl(get_string(14));
  127. =   m.stored_as=0xffffffff;
  128. =   *m1=m;
  129. .
  130. . // Way down.  About 315 lines...
  131. .
  132. =     fsh_close(q_fp);
  133. =   }
  134. =
  135. =   if (irt[0]) {
  136. +     if (strnicmp(stripcolors(irt), get_string(940), 3)!=0)
  137. +                                     /* Edit12.424 */
  138. +     sprintf(s,"%s%s",get_string(940),irt);
  139. +     else                            /* Edit12.424 */
  140. +       sprintf(s,"%s", irt);         /* Edit12.424 */
  141. =     addline(b,s,&l1);
  142. =     if (irt_sub[0]) {
  143. =       sprintf(s,"%s%s", get_string(1509), irt_sub);
  144.  
  145.  
  146. done.
  147.  
  148. WARNING!!!! BACKUP EVERYTHING!
  149.  
  150. Save, Recompile and run.
  151. Hope you didn't break a sweat on that one!
  152.  
  153. Editor
  154.