home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
CY-BLKL.MOD
< prev
next >
Wrap
Text File
|
1996-02-02
|
3KB
|
120 lines
┌───── ──────── ─ ── ─ ──────────────── ─ ─ ────────── ───── ───────────────┐
│ Mod Name ■ CY-BLKL.MOD Mod Author: Cyrus │
│ DifficuLty ■ ▓▒▒▒▒▒▒▒▒▒ Crapping's harder -Cy-[ash] │
│ WWiV Version ■ 4.24+ │
│ Mod Date ■ 01/23/96 │
Files Affected■ MMENU.C MISCCMD.C │
│ Description ■ It's A blacklist for all YoU EliToS │
└────────────────── ─────── ───────────── ────────────── ──────────────── ───┘
[Extended Crap]
This is the first .mod released by me as a member of .ash., It's a
blacklist where everyone can put the name of the users that piss them off.
It has a cool ansi header and menu.....
I like it, hope you do...
[Disclaimer]
you installed it not me, your fault not me, If its messed you shoulda backed
it up!!!!!!
BACK IT UP!!
[1st step].....
Open Misccmd.C and place these two functions at the end of the file..
void boxbgone(int X, int Y, int X2, int Y2)
{
int i;
ansic(0);
goxy(X,Y);
for (Y=Y;Y<Y2;Y++) {
for (i=0;i<X2;i++)
npr(" ");
goxy(X,Y);
}
}
void blacklist(void)
{
int i,f,ok, done=0, lclear;
char s[150],s1[150],ch,ch1,ch3,*ss;
char alias[21], reason[41];
helpl=0;
do {
printfile("BL.ANS");
goxy(61,11);
ch3=onek("ARQ");
switch (ch3) {
case 'Q':
done=1;
CLS();
break;
case 'R':
CLS();
printfile("BLLIST.ANS");
pausescr();
break;
case 'A':
boxbgone(41,10,39,16);
goxy(43,10);
pl("8Enter their alias:");
goxy(43,11);
inputl(alias,20);
ok =1;
if (ok) {
goxy(43,14);
pl("7Why should he be blacklisted?");
goxy(43,15);
inputl(reason,36);
CLS();
sprintf(s,"7[1%-20s7] 8%-38s 7(1%-15s7)", alias, reason, thisuser.name);
nln(2);
pl(s);
nl();
npr("5Blacklist this Lamer? ");
if (ny()) {
sprintf(s1,"%sBLLIST.ANS",syscfg.gfilesdir);
f=sh_open(s1,O_RDWR | O_CREAT | O_BINARY, S_IREAD | S_IWRITE);
if (filelength(f)) {
sh_lseek(f,-1L,SEEK_END);
sh_read(f,((void *)&ch1),1);
if (ch1==26)
sh_lseek(f,-1L,SEEK_END);
}
sh_write(f,(void *)s,strlen(s));
sh_close(f);
nl();
pl("7His name's on the list..");
}
}
}
} while ((!done) && (!hangup));
}
[Step duce...]
Open MMEnu.c
in function Mainmenu
Add this after case I:
case '&':
blacklist();
break;
[Step trizzat]
Make Fcns...and compile...and unzip blklist.zip in your gfiles dir
[Greetz]
I want to say whats up to everyone on MB, and whats up to -xEx-
I also want to thank Eric for all his help and patience even though
I decided not to use his ideas... but thats only because I need patience..
-Cy- [ash]