home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODSUNKN.ZIP / MSGQUOT4.MOD < prev    next >
Text File  |  1990-07-11  |  4KB  |  85 lines

  1. Goose #19 @7313
  2. Mon Jul 02 18:28:54 1990
  3. And right before the loop to start inputting text (right after the title has
  4. been entered), add the following code to print out the quoted part of the
  5. message so the user knows what he's working with:
  6.  
  7. -     s[thisuser.screenchars]=0;
  8. -     pl(s);
  9. +     if (curli!=0) {                                            /* mod - add
  10. */
  11. +       i1=0; i2=0; i3=thisuser.screenchars;                     /* mod - add
  12. */
  13. +       for (i=0; (i<curli) && (!i2); i++) {                     /* mod - add
  14. */
  15. +         strcpy(s1,&(lin[i*LEN]));                              /* mod - add
  16. */
  17. +         if (s1[0]==2) {                                        /* mod - add
  18. */
  19. +           strcpy(s1,&(s1[1]));                                 /* mod - add
  20. */
  21. +           i5=0;                                                /* mod - add
  22. */
  23. +           for(i4=0; i4<strlen(s1); i4++)                       /* mod - add
  24. */
  25. +             if ((s1[i4]==8) || (s1[i4]==3))                    /* mod - add
  26. */
  27. +               --i5;                                            /* mod - add
  28. */
  29. +             else                                               /* mod - add
  30. */
  31. +               ++i5;                                            /* mod - add
  32. */
  33. +           for (i4=0; (i4<(i3-i5)/2) && (!i2); i4++)            /* mod - add
  34. */
  35. +             osan(" ",&i2,&i1);                                 /* mod - add
  36. */
  37. +         }                                                      /* mod - add
  38. */
  39. +         pla(s1,&i2);                                           /* mod - add
  40. */
  41. +       }                                                        /* mod - add
  42. */
  43. +       pl("Use /D to delete extra lines, or begin entering.."); /* mod - add
  44. */
  45. +     }                                                          /* mod - add
  46. */
  47. -
  48. -     while (!done) {
  49. -       helpl=27;
  50.  
  51. Then, about 150 lines down, add the following code to add the /D (delete)
  52. command for editing of the message:
  53.  
  54. -             pl("Replace:");
  55. -           } else {
  56. -             pl("Nothing to replace.");
  57. -           }
  58. -         }
  59. +         if (stricmp(s,"/D")==0) {                          /* mod - add */
  60. +           savel=0;                                         /* mod - add */
  61. +           sprintf(s1,"Delete from line 1-%d?",curli-1);    /* mod - add */
  62. +           prt(5,s1);                                       /* mod - add */
  63. +           input(s1,2);                                     /* mod - add */
  64. +           i5=atoi(s1);                                     /* mod - add */
  65. +           if (i5==curli)                                   /* mod - add */
  66. +             i6=i5;                                         /* mod - add */
  67. +           else {                                           /* mod - add */
  68. +             sprintf(s1,"through line %d-%d?",i5,curli-1);  /* mod - add */
  69. +             prt(5,s1);                                     /* mod - add */
  70. +             input(s1,2);                                   /* mod - add */
  71. +             i6=atoi(s1);                                   /* mod - add */
  72. +           }                                                /* mod - add */
  73. +           if ((i5>0) && (i6>=i5) && (i6<=curli-1))         /* mod - add */
  74. +             memmove(&lin[(i5-1)*LEN],&lin[(i6)*LEN],       /* mod - add */
  75. +               LEN*(curli-i6+1));                           /* mod - add */
  76. +             curli+=i5-i6-1;                                /* mod - add */
  77. +             pl("Line(s) deleted.  Continue entering...");  /* mod - add */
  78. +           } else                                           /* mod - add */
  79. +             pl("Nothing deleted.");                        /* mod - add */
  80. +         }                                                  /* mod - add */
  81. -         if (stricmp(s,"/TI")==0) {
  82. -           savel=0;
  83. -           helpl=26;
  84.  
  85. (Continued...)