home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / ALLMODS.ZIP / WAX00.ZIP / WAX00.MOD < prev   
Encoding:
Text File  |  1995-07-03  |  4.2 KB  |  96 lines

  1. ``Sex Wax`` WWIVLink #1 AT 15808
  2. Sun Jun 25 22:00:05 1995
  3.       ╔═════════════════════════════════════════════════════════════╗
  4.       ║ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ║
  5.       ║ * ╔═════════════════════════════════════════════════════╗ * ║
  6.       ║ * ║              --=={ Wax's Mods }==--                 ║ * ║
  7.       ║ * ║                                                     ║ * ║
  8.       ║ * ║ Name: WAX00.MOD  (06/20/95)                         ║ * ║
  9.       ║ * ║ Desc: Old Quit BBS Mod revised                      ║ * ║
  10.       ║ * ║ Vers: 4.24 (Will not work on prior versions)        ║ * ║
  11.       ║ * ║ Diff: ▓  <--- EASY                                  ║ * ║
  12.       ║ * ║ Orig. Auth: (Unknown)                               ║ * ║
  13.       ║ * ║ Written by: Sex Wax       (508)764-6438 - 14.4 BAUD ║ * ║
  14.       ║ * ║ Wax's BBS: NO MAN'S LAND! (508)765-5829 - 14.4 BAUD ║ * ║
  15.       ║ * ╚═════════════════════════════════════════════════════╝ * ║
  16.       ║ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ║
  17.       ╚═════════════════════════════════════════════════════════════╝
  18.          1@15808 WWIVLink -=- 1@9207 WWIVNet -=- 51:51/20 WCSANet
  19.  
  20.     Difficulty: ( ▓ = EASY ), ( ▓▒ = SOME DIFFICULTY ), ( ▓▒░ = TOUGH )
  21.                                                          <Most likely>
  22.                                                         <not a Wax Mod>
  23.  
  24. ══════════════════════════════════════════════════════════════════════════════
  25. Description: Will ask Sysop if he wants to take the phone off the hook..
  26.              If not, it will do it's normal routine...
  27.  
  28. Note: It defaults to NO when ENTER is hit
  29.  
  30. =============================================================================
  31.  
  32. Note - I would consider backing up your source before adding this. It's always
  33.        a good idea. just do pkunzip -a source *.c *.h.
  34.  
  35. =============================================================================
  36.  
  37.  
  38. Step 1. Back up your source! (or else!)
  39.  
  40. Step 2. Look for the following function, 'void end_bbs(int lev)'...
  41.  
  42. Step 3. Make changes below or replace everything after 'if (ok_modem_stuff)'
  43.         except for the last bracket..
  44. /****************************************************************************/
  45.  
  46. /*
  47.  * Ends BBS execution with errorlevel of lev set. Closes stringfiles and
  48.  * restores all interrupts to previous state.
  49.  */
  50.  
  51. void end_bbs(int lev)
  52. {
  53.   char s[81];
  54.  
  55.   sprintf(s,get_stringx(1,131), wwiv_version,
  56.           instance, times(), date());
  57.   sl1(0,"");
  58.   sl1(0, s);
  59.   sl1(0,"");
  60.   sl1(1,"");
  61.   catsl();
  62.   close_strfiles();
  63. #ifdef __OS2__
  64.   if (stdprn != NULL)
  65.     fclose(stdprn);
  66. #endif
  67.   write_inst(INST_LOC_DOWN,0,INST_FLAGS_NONE);
  68.   if (ok_modem_stuff)
  69.     prt(1,"Hey Putz, you want the phone off the hook? ");  /* WAX00.MOD */
  70.       if (yn()) {                                    /* WAX00.MOD */
  71.         holdphone(1);                                /* WAX00.MOD */
  72.         closeport();                                 /* WAX00.MOD */
  73.   outs(wwiv_version);                                /* WAX00.MOD */
  74.   outs(" run complete.\r\n\r\n");                    /* WAX00.MOD */
  75. #ifndef __OS2__                                      /* WAX00.MOD */
  76.   setvect(save_dos,NULL);                            /* WAX00.MOD */
  77. #endif                                               /* WAX00.MOD */
  78.   exit(lev);                                         /* WAX00.MOD */
  79.       } else {                                       /* WAX00.MOD */
  80.        if (ok_modem_stuff)                           /* WAX00.MOD */
  81.        closeport();                                  /* WAX00.MOD */
  82.        outs(wwiv_version);                           /* WAX00.MOD */
  83.        outs(" run complete.\r\n\r\n");               /* WAX00.MOD */
  84. #ifndef __OS2__                                      /* WAX00.MOD */
  85.        setvect(save_dos,NULL);                       /* WAX00.MOD */
  86. #endif                                               /* WAX00.MOD */
  87.        exit(lev);                                    /* WAX00.MOD */
  88.       }                                              /* WAX00.MOD */
  89.  
  90. }
  91.  
  92.  
  93. Step 4. Compile! Thats it!
  94.  
  95. 1Φ5∞∞∞2⌡1≈≈≈≈≈» 2Sex Wax 1«≈≈≈≈≈2⌠5∞∞∞1Φ0
  96.