home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
POSTCALL.MOD
< prev
next >
Wrap
Text File
|
1990-04-01
|
2KB
|
63 lines
Buck #1 @8604
Fri Mar 30 15:19:17 1990
Well, this is my first "published" mod, and it's a simple one, and merely a
change in one of Waynes functions to apply it to stop game leeches.
Since Wayne implemented a post/call ratio requirement for downloading
files, i thought, hey, why can't i just do the same thing to the chains?
Well, I did, and it works fine. Here we go...
First, Load up BBS.C and search for "do_chains", then insert the following
line ('=' means existing, '+' means ADD the line, and '-' means delete
the line).
= Case '.'
= helpl=26;
+ if (post_ratio_ok())
= do_chains;
= break;
Next, insert the following procedure after any procedure in BBS.C
/* Begin mod */
int post_ratio_ok()
{
int ok=1;
char s[101];
if (!(thisuser.exempt & exempt_ratio))
if ((syscfg.post_call_ratio>0.0001) && (post_ratio()<syscfg.post_call_ratio)) {
ok=0;
nl();
nl();
sprintf(s,"Your post/call ratio is %-5.3f. You need a ratio of %-5.3f to access games.",
post_ratio(), syscfg.post_call_ratio);
pl(s);
nl();
}
return(ok);
}
/* End Mod */
Now, load up FCNS.H and add the new int post_ratio_ok() function to
the bottom of the list, and your off!
Great, now that you've done that, simply recompile the BBS, and you are
all set. Go into init, and set your post/call ratio the way you want
it and if there are any users that you want to be exempt (generally the
same users you'd want to be exempt from the ul/dl ratios) simply give
them an EXEMPTION of 1.
That's all there is to it!
Hope you enjoyed this little 3 minute mod, courtesy of:
Buck's Place BBS WWIVnet node @8604
806-793-0105
Hayes V-Series Powered