home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / EVENTS / MTNV21.ARJ / MTONEXT.MOD < prev   
Text File  |  1993-12-29  |  3KB  |  62 lines

  1. ╓────────────────────────────────────────────────────────────────────────────╖
  2. ║ MOD: MTONEXT.MOD                                                           ║
  3. ║ Difficulty: █────────                                                      ║
  4. ║ By: Max Sterling                                                           ║
  5. ║ Purpose: To add additional support to the Message to Next Caller Program   ║
  6. ║          by Datagen Software Designs.  This mod  will allow users to run   ║
  7. ║          the program at logoff.                                            ║
  8. ║                                                                            ║
  9. ║          Please note that this modification was originally written for     ║
  10. ║          WWIV v4.10, and may require some modification for the current     ║
  11. ║          version!                                                          ║
  12. ║ Affects: BBS.C                                                             ║
  13. ╙────────────────────────────────────────────────────────────────────────────╜
  14.  
  15.                            WARRANTY and DISCLAIMER
  16.                            ───────────────────────
  17.  
  18.          This modification is provided AS IS without any expressed or
  19.          implied warranties whatsoever. No warranty of fitness for  a
  20.          particular  purpose  is offered.  The  author  of  this  mod
  21.          cannot be held responsible for DIRECT, INDIRECT  INCIDENTAL,
  22.          CONSEQUENTIAL,  or  ANY OTHER damages due to your ability or
  23.          inability  to  use  this  mod, even  if the author has  been
  24.          advised of the possibility of such damages. The user assumes
  25.             full responsibility for the use of this modification.
  26.  
  27.  
  28. BACK UP YOUR SOURCE!!! Or at least the file(s) that is/are affected.
  29.  
  30. Open up BBS.C. Look down until you find BOTH case 'O':'s in the main menu and 
  31. the transfer menu.  Make the changes shown below.  Also be sure you change the
  32. command line to suit your CHAIN.TXT location.
  33.  
  34. - = existing line
  35. + = add this line
  36.  
  37. /*------------------------------MTONEXT.MOD--------------------------------*/
  38.  
  39. -      case 'O':
  40. -    helpl=12;
  41. -    nl();
  42. -    nl();
  43. -    prt(3,"Log Off? ");
  44. -    if (yn()) {
  45. +      if(okansi()) {
  46. +        sprintf(s2,"MTONEXT D:\WWIV\CHAIN.TXT"); /* CHANGE TO PROPER COMMAND LINE */
  47. +        run_external1(s2);
  48. +        outchr(12);
  49. +        npr("7Time on   = 1%s\r\n",ctim(timer()-timeon));
  50. +        printfile("LOGOFF");
  51. +        hangup=1;
  52. +        }
  53. +      } else {
  54. -        outchr(12);
  55. -        npr("7Time on   = 1%s\r\n",ctim(timer()-timeon));
  56. -        printfile("LOGOFF");
  57. -       hangup=1;
  58. +      }
  59. +    }
  60. -   break;
  61. /*------------------------------END MTONEXT.MOD----------------------------*/
  62.