home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / STMPMOD.ZIP / STIMP07.MOD < prev    next >
Text File  |  1992-07-30  |  2KB  |  65 lines

  1. ┌────────────────────────────────────────────────────────────────────────┐
  2. │Mod : STIMP07.MOD                                                       │
  3. │Version: WWIV 4.20e                                                     │
  4. │Author : Stimpy #1 @1002 NuclearArmsNET 442-1601                        │
  5. │Description: Small logoff sequence.                                     │
  6. │Diffculty: ▓▓░░░░░░░░                                                   │
  7. │Disclaimer: Always backup your source. If you get an incredible urge to │
  8. │            sautee your cat, it's not my fault!                         │
  9. └────────────────────────────────────────────────────────────────────────┘
  10.  
  11.    = existing line
  12.    + add line
  13.    - deleted line
  14.    * change line
  15.  
  16. In BBS.C
  17.  
  18. Put the following void in somewhere above void mainmenu()
  19.  
  20. void logoff1()
  21. {
  22.   char ch;
  23.  
  24.   helpl=12;
  25.   nl();
  26.   nl();
  27.   npr("eLog Off\r\n");
  28.   nl();
  29.   pl("3[113] 1Oops3, 1Quit back to board");
  30.   pl("3[123] 1Fast Logoff");
  31.   pl("3[133] 1Logoff with ansi");
  32.   pl("3[143] 1Leave a note to the Sysop before leaving");
  33.   nl();
  34.   outstr("7() 1Which 7(> ");
  35.   ch=onek("1234");
  36.   switch(ch) {
  37.     case '1':
  38.       break;
  39.     case '2':
  40.       hangup=1;
  41.       break;
  42.     case '3':
  43.       outchr(12);
  44.       npr("Time on   = %s\r\n",ctim(timer()-timeon));
  45.       printfile("LOGOFF");
  46.       hangup=1;
  47.       break;
  48.     case '4':
  49.       strcpy(irt,"Log Off Feedback");
  50.       email(1,0,0,0);
  51.       hangup=1;
  52.       break;
  53.     }
  54. }
  55.  
  56. Now search for case 'O': in void mainmenu() and void dlmainmenu() and
  57. change them both to look like this:
  58.  
  59.       case 'O':
  60.     logoff1();
  61.     break;
  62.  
  63. Search for /O in mainmenu() and dlmainmenu() and delete them both.
  64.  
  65. Now save and re-compile.