home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / ALLMODS.ZIP / CALV02-D.ZIP / CALV02-D.MOD next >
Encoding:
Text File  |  1995-06-11  |  6.5 KB  |  158 lines

  1. Calvin #1 @4350
  2. Fri Jun 09 04:33:42 1995
  3. ┌────────────────────────────────────────────────────────────────────────────┐
  4. │ Mod Name      : CALV02-D.MOD           Mod Author: CALVIN 1@8262  TerraNET │
  5. │ Difficulty    : █▒▒▒▒▒▒▒▒▒                                1@4350  WWIVNet  │
  6. │ WWIV Version  : 4.24 and WWIVMail/QWK v.4.56              1@2001  ASSnet   │
  7. │ Mod Date      : 06/09/95                                  1@18262 WWIVLink │
  8. │ Files Affected: LILO.C                                    1@8262  IceNET   │
  9. │ Description   : Asks users if they'd like to use          1@10000 WaveCom  │
  10. │                 WWIVMail/QWK right at logon                                │
  11. └────────────────────────────────────────────────────────────────────────────┘
  12. ╔════════════════════════════════════════════════════════════════════════════╗
  13. ║   This mod is copyright 1995 by Michael Lerch, aka Calvin, and is          ║
  14. ║   distributed as freeware.  Permission is granted to distribute and post   ║
  15. ║   this mod on BBS systems and online services, provided no alterations are ║
  16. ║   made (removal of message headers/taglines allowed). This mod may contain ║
  17. ║   some parts of WWIV source code, which is copyright 1988-1995 by Wayne    ║
  18. ║   Bell and licensed only to registered users of WWIV.  Use of WWIV source  ║
  19. ║   without registration constitutes a license violation and could lead to   ║
  20. ║   legal prosecution and certain doom.                                      ║
  21. ║                                                                            ║
  22. ║   Shareware distributors and CD-ROM publishers may not distribute this mod ║
  23. ║   without express written permission of the Author or WWIV Software        ║
  24. ║   Services.                                                                ║
  25. ╚════════════════════════════════════════════════════════════════════════════╝
  26.  
  27. ══[ Description ]═════════════════════════════════════════════════════════════
  28.  
  29. This mod will ask users "Would you like to use WWIVMail/QWK?" right after
  30. they've been asked if they'd like to read their mail.
  31.  
  32. I chose to do it AFTER the offer to read the E-mail, because there are
  33. some users who prefer to do the E-mail bit via WWIV (hence Michael
  34. Leib's option in WWIVMail/QWK to save downloaded E-mail)
  35.  
  36. Version C updated the mod for WWIV v.4.23 and WWIVMail/QWK v.4.53.
  37.  
  38. Version D (this version) updates the mod for WWIV 4.24 and v.4.56.
  39.  
  40. IMPORTANT NOTE:  If you ported a mod like this from v.4.22 to v.4.23,
  41. you NEED to switch to this mod.  WWIVMail/QWK now needs the path to
  42. CHAIN.x passed to it, so the old mod won't work, even though it'll
  43. compile.
  44.  
  45. ══[ Legend ]══════════════════════════════════════════════════════════════════
  46.  
  47.   =  Existing line - Do not change
  48.   +  Add this line
  49.   -  Remove this line
  50.  
  51. ══[ Step 1 ]══════════════════════════════════════════════════════════════════
  52.  
  53. Back up your source code.  I use the "incremental backup" procedure,
  54. which utilizes the archive bit in the file attributes.  If you want
  55. info, read the PKZip docs or E-mail me.  It works great and saves a lot
  56. more time than just PKZIP BACKUP.ZIP *.H, etc.
  57.  
  58. ══[ Step 2 ]══════════════════════════════════════════════════════════════════
  59.  
  60. If YOU want to be asked to run WWIVMail/QWK at logon, install this.
  61. Otherwise go to step 3
  62.  
  63. Load up LILO.C and goto void logon(void)
  64.  
  65. Insert where noted
  66.  
  67.  
  68. =     if (usub[0].subnum==-1) {
  69. =       curconfsub=0;
  70. =       setuconf(CONF_SUBS, curconfsub, -1);
  71. =     }
  72. =   }
  73. + /* The next block added for CALV02-D.MOD */
  74. +   prt(7,"Would you like to run WWIVMail/QWK? ");
  75. +   if(yn()) {
  76. +     sprintf(s1, "wwivqwk.exe %s", create_chain_file());
  77. +     extern_prog(s1, EFLAG_SHRINK | EFLAG_FILES | EFLAG_INTERNAL);
  78. +     save_status();
  79. +   }
  80. + /* The above block added for CALV02-D.MOD */
  81. =   rip_cls();
  82. =   autox = -1;
  83. = }
  84.  
  85. Go to step 4 (skip step 3)
  86.  
  87. ══[ Step 3 ]══════════════════════════════════════════════════════════════════
  88.  
  89. If you, the sysop, DON'T want to be asked to run WWIVMail/QWK when you
  90. logon, but want your users to, you're in the right place.  Otherwise go
  91. back to step two.  If you don't want your USERS to be asked to run
  92. WWIVMail/QWK, then why are you installing this mod? <g>
  93.  
  94. Load up LILO.C and goto void logon(void)
  95.  
  96. Insert where noted
  97.  
  98. =     if (usub[0].subnum==-1) {
  99. =       curconfsub=0;
  100. =       setuconf(CONF_SUBS, curconfsub, -1);
  101. =     }
  102. =   }
  103. + /* The next block added for CALV02-D.MOD */
  104. +   if(incom){
  105. +     prt(7,"Would you like to run WWIVMail/QWK? ");
  106. +     if(yn()) {
  107. +       sprintf(s1, "wwivqwk.exe %s", create_chain_file());
  108. +       extern_prog(s1, EFLAG_SHRINK | EFLAG_FILES | EFLAG_INTERNAL);
  109. +       save_status();
  110. +     }
  111. +   }
  112. + /* The above block added for CALV02-D.MOD */
  113. =   rip_cls();
  114. =   autox = -1;
  115. = }
  116.  
  117. ══[ Step 4 ]══════════════════════════════════════════════════════════════════
  118.  
  119. Compile.
  120.  
  121. ══[ Disclaimer ]══════════════════════════════════════════════════════════════
  122.  
  123. I'm not responsible for anything that goes wrong when you install this
  124. mod.  This is the same code that's on my system, though.
  125.  
  126. ══[ Background ]══════════════════════════════════════════════════════════════
  127.  
  128. The first version of this mod was inspired by HAZEL01.MOD, by Dan Hazel
  129. (Rick).  His mod lets users configure a switch in defaults to jump into
  130. WWIVMail/QWK immediately upon logging on.  I didn't need anything that
  131. complicated, though!
  132.  
  133. What I wanted instead was have a way for users to get into WWIVMail/QWK
  134. without having to get into the chains section.  Why?  Because I
  135. installed TIMELOCK.MOD (by Stardriver #1 @15807, I think), which doesn't
  136. allow people into the chains for a sysop-configurable amount of time.
  137. This way they can still get their mail with WWIVMail/QWK.  I removed
  138. the TIMECLOCK.MOD pretty soon after I installed it but liked the
  139. visibility that .QWK mail got by having it right at logon.
  140.  
  141. I have also have written a mod that makes WWIVMail/QWK run when users
  142. type //QWK and optionally adds a //WWIVMAIL command to the main menu of
  143. the BBS.  That mod is available as CALV03-x.MOD.  I have both installed
  144. in my system.  I LOVE .QWK mail and want my users to love it to.
  145.  
  146. ══[ Wrap-Up ]═════════════════════════════════════════════════════════════════
  147.  
  148. If you use this mod, send me your favorite joke.
  149.  
  150. CALVIN 1@8262 TerraNET   1@18262 WWIVLink
  151.        1@4350 WWIVNet    1@8262  IceNET
  152.  
  153. Special thanks to JAFO who runs a fine network (TerraNET), writes great
  154. utilities, and whose mods I use as a template because I believe there's
  155. no finer.
  156.  
  157. Blarty-Toot BBS - Spam = Haggis = Blarty-Toot
  158.