home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
LOWMEM.MOD
< prev
next >
Wrap
Text File
|
1992-01-29
|
3KB
|
60 lines
/****************************************************************************/
LOW MEMORY WARNING MOD
Another Mod for 4.xx
by TwO PunKs
1@8410 1@8406
/****************************************************************************/
This mod was written because some of us can't afford 80MB Hard Drives
and go to bed each night praying that some idiot doesn't upload the entire
Encylopedia Britainica and drop the free space on our drives below 100K (at
which point users can't post or even leave you mail to tell you about it!).
Well for those sysops who don't go on their boards that much and just
check the logs this mod will cause a BEEPING to occur when a user logs off &
the free space drops below 100K and also writes you a note in the sysop log.
It's very easy to configure for any memory size you'd like to be warned at.
Have fun and enjoy....
------------------------------------------------------------------------------
STEP 1: BBSUTIL.C in void logoff(); ____________________
| $ Search for Line |
Search for: | ! Change Line |
| + Add Line |
void logoff() | - Delete Line |
{ | = Leave Line Alone |
= long l; |____________________|
! int f,r,w,t,beepyet;
! char s[81],s1[81];
$ mailrec m;
= shortmsfrec sm;
! double ton,ti;
= dtr(0);
= thisuser.lastrate=atoi(curspeed);
= strcpy(thisuser.laston,xdate);
+ beepyet=0;
+ ti=freek1((d.path));
= thisuser.sl=realsl;
.
.
.
= close(f);
= }
= }
+ ltoa((long) (ti),s1,10);
+ if (ti<100) { /* vary if needed */
+ beepyet=1;
+ outstr(7);
+ sysoplog("*!*!*!*!*!* WARNING! DISK SPACE IS BELOW 100K!! *!*!*!*!*");
}
-----------------------------------------------------------------------------
That should be it. It will give one error (yet another to ignore)
upon compiling but don't worry about it. You can change the 100 to anything
that you'd like for a warning. And you can also change the number of times
the thing will beep at you if you'd like.
Well that's about it. Let us know if you have any problems or
questions. All suggestions are also welcome and always responded to. Enjoy.
TwO PunKs