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 >
Wrap
Text File
|
1992-12-01
|
1KB
|
44 lines
Mod for Safe Stop on mailr deletions...
Name: Mr Wizard #40 @3453
Date: Sat May 13 13:40:03 1989
Here is a mod for the option to abort a MAILREAD from the Sysop command...
------------------------------------------------------------------------
SAFETY GUARDED DELETE IN READALL MAIL MODIFICATION...
Find "void mailr" in BBSUTL.C....
look for the part that looks like what you see here... Make the changes that
you see that I have made.... EASY!...
Mr Wizard // Mr Wizard's Castle' 256-7466 \\
-------------------------------------------------------------------------
print("Title: ",m.title,"");
read_message1(&(m.msg),m.anony & 0x0f,1,&next,"EMAIL");
prt(2,"R,D,Q,<space> : ");
if (next)
c=' ';
else
c=onek("QRD ");
if (c=='D') {
INSERT > prt(4,"Are you SURE you want to DELETE this piece of mail?");
INSERT > if (yn()) {
delmail(f,i);
INSERT > nl();
INSERT > pl("Mail Deleted.");
INSERT > nl();
INSERT > } else {
INSERT > nl();
INSERT > pl("Mail NOT Deleted.");
ISNERT > }
if ((!useron) && (m.touser==1) && (m.tosys==0))
--thisuser.waiting;
}
nl();
nl();
} while ((c=='R') && (!hangup));
}
i-=1;
}
----------
It is pretty easy really... good luck...