home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / PRE412.ZIP / ABORTMSG.MOD next >
Text File  |  1992-12-01  |  3KB  |  83 lines

  1.      Here is a mod I have on my BBS that forces new callers to read all the
  2. new user stuff.  If they try to space bar any of it they are told they must
  3. read it, and the message scrolls back up the screen.  The only way they can
  4. abort it is to hang up.
  5.      I think the original mod was written by Benny Hill, but there was a
  6. bug in it.  The bug was found and fixed by Ed O'Brien, 1@7701 and the fix
  7. is contained in this copy of the mod.
  8.      This mod is installed in version 4.10, but should also work in 4.11.
  9.  
  10. Load up NEWUSER.C  and search down for void newuser(
  11.  
  12. 1. Find - int i,ok;
  13.    Change to - int i,ok,done;
  14.  
  15. 2. Search down further and find - thisuser.pw[6]=0;
  16.    Modify the code as follows:
  17.  
  18.     if (!hangup) {                 /* existing code */
  19.       if (incom) {                 /* existing code */
  20. /************************ begin modified code ******************************/
  21. /************************ add these two lines ******************************/
  22.       do {
  23.         done=1;
  24. /********************** change these two lines *****************************/
  25.     if (printfile("SYSTEM.MSG")) {
  26.       sl1(0,"#Tried aborting System.msg");
  27. /************************** add these lines *******************************/
  28.           nl(); nl();
  29.           pl("You MUST read the System Message!");
  30.           nl(); nl();
  31.           done=0;
  32.         }
  33.       } while ((!done) && (!hangup));
  34.       do {
  35.         done=1;
  36. /*************************** change these two lines ***********************/
  37.         if (printfile("NEWUSER.MSG")) {
  38.           sl1(0,"#Tried aborting Newuser.msg");
  39. /****************************** add these lines ****************************/
  40.           nl(); nl();
  41.           pl("You MUST read the New User Message!");
  42.           nl(); nl();
  43.           done=0;
  44.         }
  45.       } while ((!done) && (!hangup));
  46. /*************************** end of modified code **************************/
  47.     }                              /* existing code */
  48.     input_name();                  /* existing code */
  49.  
  50. ===========================================================================
  51.  
  52. 3. Now go to near the end and find - changedsl();
  53.    Modify the code as follows:
  54.  
  55.      changedsl();                  /* existing code */
  56.      if (incom) {                  /* existing code */
  57. /*************************** begin modified code ***************************/
  58. /*************************** add these two lines ***************************/
  59.      do {
  60.        done=1;
  61. /************************* change these two lines **************************/
  62.        if (printfile("FEEDBACK.MSG")) {
  63.          sl1(0,"#Tried aborting Feedback.msg");
  64. /************************** add these lines ********************************/
  65.          nl(); nl();
  66.          pl("You MUST read the Feedback Message!");
  67.          nl(); nl();
  68.          done=0;
  69.        }
  70.     } while ((!done) && (!hangup));
  71. /************************* end modified code ******************************/
  72.      sprintf(irt,"Validation Feedback blah blah blah   /* existing code */
  73.      email(1,0,1,0);                                   /* existing code */
  74.  
  75. ==========================================================================
  76.  
  77. That's it.  Compile and check it out.  I've been using it for three months
  78. on my board without a problem.  Hope this can help you.
  79.  
  80. The Conductor 1@7702
  81.  
  82.  
  83.