home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / PRE412.ZIP / CIRPOST.MOD < prev    next >
Text File  |  1992-01-29  |  2KB  |  54 lines

  1.      |
  2.      | Circular Post mod
  3.      |    For Jonathan Schragg
  4.      |
  5.      
  6. Okay, Jon, you should have known that if you suggested it, I would come up 
  7. with it.  Okay, here's the rather simple solution to repeating the "Do you 
  8. want to post on [sub name]?" question. (remember that I have v4.05, so the 
  9. code may be different).
  10.  
  11. All changes are in MSGBASE1.C.  
  12. (Legend: '=' is same, '+' is new, '*' is changed)
  13.  
  14. First, we need to add the character variable ch to void scan(...):
  15.  
  16. =    void scan(int msgnum, int optype, int *nextsub)
  17. =    {
  18. *      char s[81],s1[81],s2[81],*b,*ss1,ch;
  19. =      int i,i1,i2,done,quit,abort,next,val,realexpress;
  20. =      slrec ss;
  21. =      long l,len;
  22. =      postrec p,p1;
  23.  
  24.  
  25. Next, go down toward the end of void scan (...) to find and change this block:
  26.  
  27. =  if ((!quit) && (!express)) {
  28. =    nl();
  29. =    ss=syscfg.sl[thisuser.sl];
  30. =    if (
  31. =        ((restrict_post & thisuser.restrict)==0) &&
  32. =        (thisuser.posttoday<ss.posts) &&
  33. =        (thisuser.sl>=subboards[curlsub].postsl)) {
  34. +        do {
  35. +          nl();
  36. =          strcpy(s,"Post on ");
  37. =          strcat(s,subboards[curlsub].name);
  38. =          strcat(s,"? ");
  39. =          prt(5,s);
  40. +          ch=yn();
  41. *          if (ch)
  42. =            post();
  43. +           } while (ch);
  44. =     }
  45. =   }
  46.  
  47.  
  48. And that does it.  The board will keep asking if you want to post on the sub 
  49. until you tell it NO, at which point it will proceed to the next.
  50.  
  51. I'll work on the random openings later....
  52.  
  53.                               have a good lunch
  54.                                    -=><=-