home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / vrac / 5mods_4.zip / ONOFFANY.MOD < prev    next >
Text File  |  1994-01-24  |  2KB  |  53 lines

  1. ┌────────────────────────────────────────────────────────────────────────────┐
  2. │ Mod Name:        FENRIC14.MOD           Mod Author: Fenric                 │
  3. │ Difficulty:      ██▒▒▒▒▒▒▒▒             Date:  December 28th, 1993         │
  4. │ WWIV Versions:   4.23                                                      │
  5. │ Affected Files:  MSGBASE1.C                                                │
  6. │ Version:         1.0                                                       │
  7. │ Description:     Sysops can toggle message anony.                          │
  8. └────────────────────────────────────────────────────────────────────────────┘
  9.  
  10.  ─██▐ Extended Description ▌██─
  11.  
  12.  Stock WWIV provides the ability for a sysop only to turn a message's anony
  13.  off.  This modification will allow the sysop to toggle the anony on or off.
  14.  
  15.  ─██▐ Step 1 ▌██─
  16.  
  17.  Back up your source!
  18.  
  19.  ─██▐ Step 2: MSGBASE1.C ▌██─
  20.  
  21.  Search for case 'U'.  You should now be in void scan(...).  If you are not,
  22.  go to the case 'U' in void scan(...).  Replace the entire case with the
  23.  following.  You are free to externalize the strings any way you see fit.
  24.  If you do not know how, do not worry.  This modification won't exactly eat
  25.  up all your DGROUP.
  26.  
  27. /* Begin FENMOD14.423 Block Read Here */
  28.               case 'U':
  29.                 if ((lcs()) && (msgnum>0) && (msgnum<=nummsgs)) {
  30.                   if (msgs[msgnum].anony) {
  31.                     msgs[msgnum].anony=0;
  32.                     nl();  pl("Message is now NOT anonymous.");
  33.                     bchanged = 1;
  34.                   } else {
  35.                     if (xsubs[curlsub].num_nets) {
  36.                       nl(); pl("Cannot make network messages anonymous.");
  37.                     } else {
  38.                       msgs[msgnum].anony = anony_sender;
  39.                       nl();  pl("Message is now anonymous.");
  40.                       bchanged = 1;
  41.                     }
  42.                   }
  43.                 }
  44.                 break;
  45. /* End FENMOD14.423 Block Read Here */
  46.  
  47.  ─██▐ Step 3: DOS ▌██─
  48.  
  49.  Save all the modified files and exit to DOS.  Run "make fcns" to update your
  50.  FCNS.H.  "Make" the BBS and run your new compiled version.  If you'd like to
  51.  comment on this modification, send mail to FENRIC@6909 WWIVnet, 1@1 Veloci-
  52.  net or shari@phoenix.princeton.edu internet.
  53.