home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / OMEGAMOD.ZIP / OMEGA01.MOD next >
Text File  |  1993-05-31  |  3KB  |  78 lines

  1.  
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │ Mod Name: OMEGA01.MOD      Mod Author: O·M·E·G·A  [Ω]                      │
  4. │ Difficulty: Novice Modification  Date: 05/27/93                            │
  5. │ WWIV Version: 4.XX                                                         │
  6. │ Files Affected: BBS.C                                                      │
  7. │ Description: Displays a Text File (e.g. Disclaimer) on the first time a    │
  8. │ person enters your Transfer Section, per Logon.                            │
  9. └────────────────────────────────────────────────────────────────────────────┘
  10.  
  11. So, you've got a Disclaimer that you want people to see the first time they 
  12. enter your Transfer Section, and (for Legal Reasons) you want to make sure
  13. they read it?  Well, this INCREDIBLY SIMPLE mod will do this for you.
  14. The First time they enter you Transfer Section this Message will be FORCE 
  15. displayed, and then they can enter again and again after that, without this
  16. message haunting them.  Okay, here ya go.  There's No Block Reading Necessary
  17. Since it's such a small MOD.
  18.  
  19. First Step  │ (This Should Be Etched in your Brain by now)
  20. ────────────┘
  21.  
  22.              Back Up your source.  Here's an Example of how.
  23.              pkzip -a 422S.ZIP *.c *.h *.mak. 
  24.              But you can do it however you like.
  25.              
  26. Second Step │
  27. ────────────┘
  28.  
  29. Open up BBS.C and add this line at the top with the #DEFINE s..
  30.  
  31. int transfermsg_x;
  32.  
  33. Now search for  case 'T':  in void mainmenu(void)..  
  34.  
  35.       case 'T':
  36.         if (!transfermsg_x) {            /* OMEGA01.MOD ADD */
  37.       do {                    /*    "     "   "  */
  38.         done=1;                    /*    "     "   "  */
  39.         if (printfile("TRANSFER.MSG")) {        /*    "     "   "  */
  40.           nl(); nl();                 /*    "     "   "  */
  41.           done=0;                 /*    "     "   "  */
  42.         }                    /*    "     "   "  */
  43.       } while ((!done) && (!hangup));           /*    "     "   "  */
  44.             transfermsg_x=1;             /*    "     "   "  */
  45.             }                    /* OMEGA01.MOD ADD */
  46.         if (syscfg.sysconfig & sysconfig_no_xfer) {
  47.           nl();
  48.           pl(get_string(30));
  49.           nl();
  50.           break;
  51.         }
  52.         if (udir[0].subnum!=-1)
  53.           curdloads=1;
  54.         else {
  55.           nl();
  56.           pl(get_string(31));
  57.           nl();
  58.         }
  59.         break;
  60.  
  61. Third Step │
  62. ───────────┘
  63. Okay that's about it, just type 'MAKE' at the DOS prompt and....
  64.  
  65.     If you have a:
  66.         8086 Go away this weekend for a vacation.
  67.         286  Go Watch Unsolved Mysteries
  68.         386  Go Grab a Sandwich
  69.         486  Blink 
  70.  
  71. I'll help ya if you need any..  My Address' are 
  72.  
  73.         WWIVnet 3@4703
  74.         MSAnet  3@4600
  75.         
  76.                     O·M·E·G·A  [Ω]
  77.                     
  78.