home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / WWMAIL42.ZIP / MORGUL01.MOD next >
Text File  |  1992-08-12  |  4KB  |  107 lines

  1. ┌────────────────────────────────────────────────────────────────────────────┐
  2. │ Mod Name: MORGUL01.MOD     Mod Authors: Morgul 1@8315 / Trader Jack 2@8315 │
  3. │ Difficulty: Easy                  Date: 17 June 1992                       │
  4. │ WWIV Version: 4.21+                                                        │
  5. │ Files: VARDEC.H  DEFAULTS.C  LILO.C                                        │
  6. │ Description: Allows user to set a default to run WWIVMail/QWK immediately  │
  7. │              after every logon.                                            │
  8. └────────────────────────────────────────────────────────────────────────────┘
  9.  
  10. This mod allows users to set a default pointer to run WWIVMail/QWK
  11. automaticly at logon.  We wrote it using 1 of the reserved bytes to
  12. allow sysop with no additional mods in VARDEC.H to install it alone.
  13. There are many mods that will allow the setting of pointers.  If you
  14. have installed ENHANCE.C, you have sysstatus_t_one thru five.
  15. Additionally, if you've installed DeGtitle, you have the toggle bits.
  16. This is the best way we could find to do it in stock source, and yes,
  17. it has been installed in virgin 4.21 and works perfectly.  It does
  18. not require a reformat of the user list, but the entire BBS has to be
  19. re-compiled.  On with the mod.....
  20.  
  21. Legend:
  22. /*==*/ Search for this
  23. /*++*/ Add this line
  24. /*--*/ Delete this line
  25. /*&&*/ Change this line
  26.  
  27. <<Step One>>  Back up dem sourcies!!!
  28.  
  29. <<Step Two>>  Open VARDEC.H and make the following changes:
  30.   (BE SURE to change res[29] to res[28]!!)
  31.  
  32. /*==*/  unsigned long   wwiv_regnum;        /* users WWIV reg number */
  33. /*++*/  char            WWIVMail[1];        /* run WWIVMail/QWK at logon? */
  34. /*&&*/  char            res[28];            /* reserved bytes */
  35.  
  36.     Close and save VARDEC.H.
  37.  
  38. <<Step Three>>  Open DEFAULTS.C in void print_cur_stat, make the
  39.  following changes:
  40.  
  41. /*==*/   npr("B. Optional lines    : %d\r\n",thisuser.optional_val);
  42. /*++*/   npr("X. Run WWIVMail/QWK at Logon : %s",thisuser.WWIVMail);
  43. /*++*/   if (strcmp(thisuser.WWIVMail,"Y")==0)
  44. /*++*/          npr("es\r\n");
  45. /*++*/   else
  46. /*++*/          npr("o\r\n");
  47.  
  48. <<Step Four>>   Search down in void defaults() and make the follwing
  49.  changes:
  50.  
  51. /*==*/print_cur_stat();
  52. /*==*/  do {
  53. /*==*/    nl();
  54. /*==*/    helpl=4;
  55. /*==*/    if (okansi()) {
  56. /*&&*/      prt(2,"Defaults: (1-9,A-B,X,?,Q) : ");  /*add X*/
  57. /*&&*/      ch=onek("Q?123456789ABXW");             /*add X*/
  58.  
  59. <<Step Five>>  Then add an X to all the following menu lines and
  60.  ch=onek's that follow in the same manner.
  61.  
  62. <<Step Six>>  Now search down for case 'B' and add this case:
  63.  
  64. /*==*/     case 'B':
  65. /*==*/       optional_lines();
  66. /*==*/       break;
  67. /*++*/     case 'X':
  68. /*++*/       nl();
  69. /*++*/       prt(5,"Do you wish to run WWIVMail/QWK at logon? ");
  70. /*++*/       if (yn())
  71. /*++*/         strcpy(s,"Y");
  72. /*++*/       else
  73. /*++*/         strcpy(s,"N");
  74. /*++*/       strcpy(thisuser.WWIVMail,s);
  75. /*++*/       break;
  76. /*==*/     case 'W':
  77.     Close and save DEFAULTS.C.
  78.  
  79. <<Step Seven>>  Open up LILO.C and add these lines right at the end of
  80. void logon():
  81.  
  82. /*==*/  create_chain_file("CHAIN.TXT");
  83. /*++*/if (strcmp(thisuser.WWIVMail,"Y")==0) {
  84. /*++*/        set_protect(0);
  85. /*++*/        strcpy(s1,"D:\\WWIV\\wwivqwk"); /*change drive to suit*/
  86. /*++*/        strcpy(s2,"CHAIN.TXT");
  87. /*++*/        stuff_in(s,s1,s2,"","","","");
  88. /*++*/        shrink_out(s,1,0,1,1);
  89. /*++*/   }
  90. /*==*/}
  91.  
  92.         Close and save LILO.C.
  93.  
  94. <<Step Eight>> Type MAKE from the commandline or hit F-9 in the IDE
  95.  and let 'er rip.  You tapped a Header file so you know the deal.
  96.  
  97. <<Step Nine>>  Send E-mail to 1 or 2 @8315 to let us know you used
  98.  this mod.
  99.  
  100. Disclaimer: If it breaks, you own the parts.  This mod is guaranteed
  101.             to do one thing.....take up space on a disk.
  102.  
  103.  
  104.  
  105.  
  106.  
  107.