home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
BEAM201.MOD
< prev
next >
Wrap
Text File
|
1995-06-09
|
4KB
|
112 lines
Beamer #1 @3459
Fri Jun 09 11:57:55 1995
7╔═══────∙─═─ ─═── ──═ ─ ── ∙
7║ 1Reply Stats: 3If you want to
7╚═════──── ═──═─ ─══─ ──═─ ─ ─── ∙
╔───────────────────────────────────────────────────────────────────────────╗
│ Mod Name: BEAM201.Mod Date : June 9, 1995 │
│ Difficulty: █▒▒▒▒▒▒▒▒▒ Author: Beamer │
│ WWIV Version: 4.23 7@2148 WWIVnet │
│ Files Affected: MSGBASE1.C 1@3450 DesertNet │
│ Description: Send SSM to the owner of a 1@3459 TerraNet │
│ deleted post with reason why. 1@3452 Infiniti │
╠─────────────────────────╦─────────────────────────────────────────────────╝
│─ ─═[ Modding codes ]═─ ─│
│ ───────────────────── │
│ = Existing Code │
│ + Add This Code │
│ - Delete This Code │
│ % Modify This Code │
╚─────────────────────────╝
Long Desc : There was a request for this mod on the net a few days ago,
I thought it t'was a good idea, as I've been getting a bunch
of bogus/BS posts on my netted subs lately and I get tired
of emailing the author to gripe, so this makes it quicker.
The mod works the same way as 'D' when reading posts,
hit 'Z' to 'zap' and it asks you for a reason.
It looks like the following...
6■ 7Your post titled2: 3Your Moma!!!
6■ 7On the subboard 2: 3General Chat
6■ 7Was deleted by 2: 3The Sub Host
6■ 7Reason 2: 3That was not nesseccary!
The SSM is big enough to get the person's attention and it will
BEEP, so you KNOW they'll see that it was deleted and why. <g>
─────────────────────────────────────────────────────────────────────────────
Step 0: Back the code up!
DOE!
─────────────────────────────────────────────────────────────────────────────
─────────────────────────────────────────────────────────────────────────────
STEP 1 : Open up MSGBASE1.C, in void scan(... block copy this chunk
of code after case'D':
─────────────────────────────────────────────────────────────────────────────
//BEAM201.MOD Begins
case 'Z':
if (lcs()) {
if (msgnum) {
open_sub(1);
resynch(cursub, &msgnum, NULL);
p2=*get_post(msgnum);
nl();
npr("7Reason2: ");
mpl2(58);
inputl(s1,58);
sprintf(s,"6■ 7Your Post Titled2: 3%s0",irt);
ssm(p2.owneruser,p2.ownersys,s);
sprintf(s,"6■ 7On The Sub 2: 3%s0",subboards[curlsub].name);
ssm(p2.owneruser,p2.ownersys,s);
sprintf(s,"6■ 7Was Deleted By 2: 3The Sub Host0");
ssm(p2.owneruser,p2.ownersys,s);
sprintf(s,"6■ 7Reason Deleted 2: 3%s0",s1);
ssm(p2.owneruser,p2.ownersys,s);
nl();
delete(msgnum);
close_sub();
if (p2.ownersys==0) {
read_user(p2.owneruser,&tu);
if ((tu.inact & inact_deleted)==0) {
if (date_to_daten(tu.firston) < p2.daten) {
nl();
prt(2,get_string(980));
mpl(3);
input(s1,3);
if (s1[0])
i1=(atoi(s1));
else
i1=1;
if (i1>tu.msgpost)
i1=tu.msgpost;
if (i1)
tu.msgpost-=i1;
nl();
ansic(3);
outstr(get_string(993));
pln(i1);
tu.deletedposts++;
write_user(p2.owneruser,&tu);
topscreen();
}
}
}
resynch(cursub, &msgnum, &p2);
}
}
break;
//BEAM201.MOD ENDS
─────────────────────────────────────────────────────────────────────────────
STEP 2: Recompile the thing!
─────────────────────────────────────────────────────────────────────────────
After Dark BBs
(314) 946-1730