home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
GOSUB.MOD
< prev
next >
Wrap
Text File
|
1990-04-25
|
2KB
|
95 lines
Ed O'Brien #1 @7701
Fri Apr 20 14:28:59 1990
/*
Hello again....
Last night I watched a newuser repeatedly hit "#" to go to a sub.
My wife then sez: "Why don't you make that key do something?"
So I did. Now when the user hits # it will prompt him/her for the sub
or dir number they wanna go to, or list them, etc.
It's easy to add and it doesn't take long to do.
*/
/*
First, go to BBS.C in void mainmenu and do this:
*/
void mainmenu()
{
char *s,*num,s1[100],s2[81]; /* <- add the *num */
int i,done1; /* add the done1 */
/*
Now go down further and add this case above case 'A':
*/
case '#':
do {
done1=0;
nl();
prt(2,"Go to which sub number? (?=List): ");
num=mmkey(0);
if (strcmp(num,"?")==0)
sublist();
for (i=0; i<32; i++)
if (strcmp(usub[i].keys,num)==0) {
cursub=i;
done1=1;
}
} while ((!hangup) && (!done1));
break; /* added to original mod */
/*
Now go down even farther to dlmainmenu() and do this:
*/
void dlmainmenu()
{
char *s,*num,s1[81],s2[81]; /* Again, add the *num */
int i,i1,abort,done1; /* Again, add the done1 */
/*
Now go down and add this case before case 'A':
*/
case '#':
do {
done1=0;
nl();
nl();
prt(2,"Go to which directory number? (?=List): ");
num=mmkey(1);
if (strcmp(num,"?")==0)
dirlist();
for (i=0; i<64; i++)
if (strcmp(udir[i].keys,num)==0) {
curdir=i;
done1=1;
}
} while ((!hangup) && (!done1));
break;
/*
There. Now hit F9 and compile. This won't take long.
<< DISCLAIMER >>
If it doesn't work, it's your fault, not mine.
There.
7Captain Learjet0
113@787550
*/
This mod was corrected by:
Ed O'Brien
1@7701