home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
CYBER04.MOD
< prev
next >
Wrap
Text File
|
1995-07-12
|
3KB
|
103 lines
Nighthawk #1 @11109
Sat Jul 08 21:54:59 1995
┌───────────────────────────────────────────────────────────────────────────┐
│ Mod Name: CYBER04.423 Mod Author: Nighthawk │
│ Difficulty: █▒▒▒▒ (Block Copy) Date: December 23, 1993 │
│ WWiV Version: 4.23 │
│ Files Affected: BBS.C, MISCCMD.C, FCNS.H │
│ Description: Adds a //WAIT to the Main Menu and Transfer Menu to put the │
│ BBS on 'hold' for up to 5 minutes. │
└───────────────────────────────────────────────────────────────────────────┘
Long Description:
I got tired of the board hanging up on people when they're
trying to upload a file or batch of files and while they're
setting up the files on their end, the board would time out
and hang up on them.. This allows them to type //WAIT at
either the main or transfer menu and put the BBS on 'hold'
for up to 5 minutes... It is abortable with a hit of a key..
Disclaimer: Guaranteed to work or your money back!
Key:
@ = Existing Line
- = Delete this line
+ = Add this line
! = Change this line
─────────────────────────────────────────────────────────────────────────────
-- Load up MISCCMD.C and add this void to the end of it...
void hold_bbs(void) /* Entire void added for CYBER04.423 */
{
char ch;
int w, d, e, min;
nl();
outstr("Would you like to put the BBS on hold? <Maximum of 5 Minutes> :");
if (yn()) {
sysoplog(" Put BBS On Hold ");
nl();
ansic(7);
pl(charstr(76,'─'));
outstr(charstr(21,' '));
outstr("Press any key to return to the board\r\n");
ansic(7);
pl(charstr(76,'─'));
d=1; e=1; w=1; min=1;
outstr("Waiting...");
while ((w < 3000) && (!hangup)) {
ch=upcase(inkey());
if (ch>=1)
w=3000;
d++; e++;
if (e==600) {
e=1;
npr("%d",min);
min++; }
if (d==50) {
d=1;
outstr("."); }
delay(100);
w++;
}
}
}
-- Save MISCCMD.C and load up BBS.C and in 'void mainmenu' add the following:
@ if (strcmp(s,"WHO")==0) {
@ multi_instance();
@ }
+ if (strcmp(s,"WAIT")==0) {
+ hold_bbs();
@ }
@ if (strcmp(s,"/A")==0) {
-- Go down to void dlmainmenu and add the following:
@ if (strcmp(s,"/O")==0)
@ hangup=1;
+ if (strcmp(s,"WAIT")==0) {
+ hold_bbs(); }
@ if (strcmp(s,"WHO")==0) {
@ list_who(); }
-- Save BBS.C and load up FCNS.H.. Search for misccmd.c and add the following:
@ int remoteupload(char *message);
@ int getnetnum(char *netnam);
+ void hold_bbs(void);
-- Save FCNS.H and compile..
-- If you have any problems with this, just drop me a line and any of the
-- following addresses... Enjoy...
Nighthawk
#1 @11109 WWIVNet
#1 @22909 WWIVLink
#1 @2909 IceNet
#1 @2909 IceLink
#1 @1 CyberNet