home *** CD-ROM | disk | FTP | other *** search
- Snorkel #1 @2100
- Sat Jul 15 14:07:44 1995
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Mod Name : M&M012.MOD Mod Author: Snorkel 1@2100 WWIVnet │
- │ Difficulty : █░░░░░░░░░ The M&M Factory [GSA] 1@3459 WWIVlink │
- │ WWIV Version : 4.24 │
- │ Mod Date : 7-15-95 │
- │ Files Affected: DEFAULTS.C, ENGLISH.STR │
- │ │
- │ Description : Prevent users from removing the number zero (0) message │
- │ base from their configured q-scan no matter where you │
- │ place it in a conference. │
- │ (re-write of the FORCESUB.MOD) │
- └────────────────────────────────────────────────────────────────────────────┘
- ╔════════════════════════════════════════════════════════════════════════════╗
- ║ This WWIV Source Code modification is copyright 1995 by Snorkel, ║
- ║ System Operator of The M&M Factory BBS and is distributed as freeware. ║
- ║ Permission is granted to distribute and post this modified code on BBS ║
- ║ systems and online services, provided no alterations are made (removal ║
- ║ of message headers/taglines allowed). This modified code may contain ║
- ║ some parts of WWIV source code, which is copyright 1988-1995 by Wayne ║
- ║ Bell and licensed only to registered users of WWIV. Use of WWIV ║
- ║ source without registration constitutes a license violation and could ║
- ║ lead to legal prosecution. ║
- ║ ║
- ║ Shareware distributors and CD-ROM publishers may not distribute this ║
- ║ modified code without express written permission of the Author or WWIV ║
- ║ Software Services. ║
- ╚════════════════════════════════════════════════════════════════════════════╝
-
- This mod prevent users from removing the number 0 sub from their configured
- q-scan. This allows you to set up a sub for "sysop news", etc., which the
- users can then read during a new message scan. The sub you set does not have
- to be the first sub in a conference, but it must carry an index number of zero
- (0) in //BOARDEDIT, meaning it must be the first sub (message base 0) in your
- list of subs.
-
- Anyone with a 255 is exempt from the restriction, and can remove, if they want
- to, the number zero sub from their q-scan. The sub you set up should have a
- post SL high enough to prevent normal users from posting on it, but have a
- read SL low enough so that even new users can read it.
-
- This mod is not designed to force users to read sysop messages before they can
- do anything else on your system, nor will they be forced to read the number
- zero sub if they only wish to do a q-scan of individual message bases. The
- only thing this mod will do is prevent your users from removing the number
- zero sub from their configured q-scan.
-
- I would like to thank TwO PunKs for writing this mod, originally for v4.07.
- This has been re-written for v4.24.
-
- ==============================================================================
- ┌────────────┐
- │ DEFAULTS.C │
- └────────────┘
-
- In the function "void config_qscan(void)", ADD the following lines where
- indicated:
-
- outstr(get_string(1151)); /* search for */
- s=mmkey(0);
- if (s[0]) {
- for (i=0; (i<num_subs) && (usub[i].subnum!=-1); i++) {
- if (strcmp(usub[i].keys,s)==0) {
- if(actsl!=255) { /* ADD */
- if (usub[i].subnum==0) { /* ADD */
- nl(); /* ADD */
- pl("6You cannot turn off the Sysop's sub!0"); /* ADD */
- nl(); /* ADD */
- continue; /* ADD */
- } /* ADD */
- } /* ADD */
- qsc_q[usub[i].subnum/32] ^= (1L<<(usub[i].subnum%32));
- }
- if (strcmp(s,"S")==0) {
- qsc_q[usub[i].subnum/32] |= (1L<<(usub[i].subnum%32));
- }
- if (strcmp(s,"C")==0) {
- if ((usub[i].subnum==0) && (actsl!=255)) /* ADD */
- continue; /* ADD */
- else /* ADD */
- qsc_q[usub[i].subnum/32] &= ~(1L<<(usub[i].subnum%32));
- }
- }
- if (strcmp(s,"Q")==0)
- ==============================================================================
-
- That's all there is to it. The one string in the mod can be removed and
- placed in the ENGLISH.STR file with an appropriate "get_string(nnnn)" call
- replaced into this code. Now recompile and set up your number zero (0)
- message base for news from you. If you have any problems with this mod, or
- questions, feel free to write me at 1@2100.WWIVnet or 1@3459.WWIVlink.
-