home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / M&M012.ZIP / M&M012.MOD < prev   
Encoding:
Text File  |  1995-07-17  |  5.4 KB  |  93 lines

  1. Snorkel #1 @2100
  2. Sat Jul 15 14:07:44 1995
  3. ┌────────────────────────────────────────────────────────────────────────────┐
  4. │ Mod Name      : M&M012.MOD        Mod Author: Snorkel     1@2100 WWIVnet   │
  5. │ Difficulty    : █░░░░░░░░░        The M&M Factory [GSA]   1@3459 WWIVlink  │
  6. │ WWIV Version  : 4.24                                                       │
  7. │ Mod Date      : 7-15-95                                                    │
  8. │ Files Affected: DEFAULTS.C, ENGLISH.STR                                    │
  9. │                                                                            │
  10. │ Description   : Prevent users from removing the number zero (0) message    │
  11. │                 base from their configured q-scan no matter where you      │
  12. │                 place it in a conference.                                  │
  13. │                 (re-write of the FORCESUB.MOD)                             │
  14. └────────────────────────────────────────────────────────────────────────────┘
  15. ╔════════════════════════════════════════════════════════════════════════════╗
  16. ║   This WWIV Source Code  modification  is  copyright  1995  by  Snorkel,   ║
  17. ║   System Operator of The M&M Factory BBS and is distributed as freeware.   ║
  18. ║   Permission is granted to distribute and post this modified code on BBS   ║
  19. ║   systems and online services, provided no alterations are made (removal   ║
  20. ║   of  message headers/taglines allowed).  This modified code may contain   ║
  21. ║   some parts of WWIV source code,  which is copyright 1988-1995 by Wayne   ║
  22. ║   Bell  and  licensed  only  to  registered  users of WWIV.  Use of WWIV   ║
  23. ║   source without registration constitutes a license violation and  could   ║
  24. ║   lead to legal prosecution.                                               ║
  25. ║                                                                            ║
  26. ║   Shareware  distributors  and CD-ROM publishers may not distribute this   ║
  27. ║   modified code without express written permission of the Author or WWIV   ║
  28. ║   Software Services.                                                       ║
  29. ╚════════════════════════════════════════════════════════════════════════════╝
  30.  
  31. This mod prevent users from removing the number 0 sub from their configured
  32. q-scan.  This allows you to set up a sub for "sysop news", etc., which the
  33. users can then read during a new message scan.  The sub you set does not have
  34. to be the first sub in a conference, but it must carry an index number of zero
  35. (0) in //BOARDEDIT, meaning it must be the first sub (message base 0) in your
  36. list of subs.
  37.  
  38. Anyone with a 255 is exempt from the restriction, and can remove, if they want
  39. to, the number zero sub from their q-scan.  The sub you set up should have a
  40. post SL high enough to prevent normal users from posting on it, but have a
  41. read SL low enough so that even new users can read it.
  42.  
  43. This mod is not designed to force users to read sysop messages before they can
  44. do anything else on your system, nor will they be forced to read the number
  45. zero sub if they only wish to do a q-scan of individual message bases.  The
  46. only thing this mod will do is prevent your users from removing the number
  47. zero sub from their configured q-scan.
  48.  
  49. I would like to thank TwO PunKs for writing this mod, originally for v4.07.
  50. This has been re-written for v4.24.
  51.  
  52. ==============================================================================
  53. ┌────────────┐
  54. │ DEFAULTS.C │
  55. └────────────┘
  56.  
  57. In the function "void config_qscan(void)", ADD the following lines where
  58. indicated:
  59.  
  60.           outstr(get_string(1151));              /* search for */
  61.           s=mmkey(0);
  62.           if (s[0]) {
  63.             for (i=0; (i<num_subs) && (usub[i].subnum!=-1); i++) {
  64.               if (strcmp(usub[i].keys,s)==0) {
  65.                 if(actsl!=255) {                                /* ADD */
  66.                   if (usub[i].subnum==0) {                      /* ADD */
  67.                     nl();                                       /* ADD */
  68.                     pl("6You cannot turn off the Sysop's sub!0"); /* ADD */
  69.                     nl();                                       /* ADD */
  70.                     continue;                                   /* ADD */
  71.                   }                                             /* ADD */
  72.                 }                                               /* ADD */
  73.                 qsc_q[usub[i].subnum/32] ^= (1L<<(usub[i].subnum%32));
  74.               }
  75.               if (strcmp(s,"S")==0) {
  76.                 qsc_q[usub[i].subnum/32] |= (1L<<(usub[i].subnum%32));
  77.               }
  78.               if (strcmp(s,"C")==0) {
  79.                 if ((usub[i].subnum==0) && (actsl!=255))        /* ADD */
  80.                   continue;                                     /* ADD */
  81.                 else                                            /* ADD */
  82.                   qsc_q[usub[i].subnum/32] &= ~(1L<<(usub[i].subnum%32));
  83.               }
  84.             }
  85.             if (strcmp(s,"Q")==0)
  86. ==============================================================================
  87.  
  88. That's all there is to it.  The one string in the mod can be removed and
  89. placed in the ENGLISH.STR file with an appropriate "get_string(nnnn)" call
  90. replaced into this code.  Now recompile and set up your number zero (0)
  91. message base for news from you.  If you have any problems with this mod, or
  92. questions, feel free to write me at 1@2100.WWIVnet or 1@3459.WWIVlink.
  93.