home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODSUNKN.ZIP / CHKDEL.MOD < prev    next >
Text File  |  1992-12-01  |  1KB  |  44 lines

  1. Mod for Safe Stop on mailr deletions...
  2. Name: Mr Wizard #40 @3453
  3. Date: Sat May 13 13:40:03 1989
  4.  
  5.     Here is a mod for the option to abort a MAILREAD from the Sysop command...
  6.  
  7. ------------------------------------------------------------------------
  8.     SAFETY GUARDED DELETE IN READALL MAIL MODIFICATION...
  9.  
  10. Find "void mailr" in BBSUTL.C....
  11. look for the part that looks like what you see here... Make the changes that
  12. you see that I have made.... EASY!...
  13.                          Mr Wizard  // Mr Wizard's Castle' 256-7466 \\
  14. -------------------------------------------------------------------------
  15.  
  16.           print("Title: ",m.title,"");
  17.           read_message1(&(m.msg),m.anony & 0x0f,1,&next,"EMAIL");
  18.           prt(2,"R,D,Q,<space>  : ");
  19.           if (next)
  20.         c=' ';
  21.       else
  22.         c=onek("QRD ");
  23.           if (c=='D') {
  24. INSERT >    prt(4,"Are you SURE you want to DELETE this piece of mail?");
  25. INSERT >    if (yn()) {
  26.         delmail(f,i);
  27. INSERT >    nl();
  28. INSERT >    pl("Mail Deleted.");
  29. INSERT >    nl();
  30. INSERT >   } else {
  31. INSERT >    nl();
  32. INSERT >    pl("Mail NOT Deleted.");
  33. ISNERT >    }
  34.         if ((!useron) && (m.touser==1) && (m.tosys==0))
  35.           --thisuser.waiting;
  36.           }
  37.           nl();
  38.       nl();
  39.         } while ((c=='R') && (!hangup));
  40.       }
  41.       i-=1;
  42.     }
  43. ----------
  44.     It is pretty easy really... good luck...