home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
SAMAN01.423
< prev
next >
Wrap
Text File
|
1993-12-11
|
3KB
|
121 lines
┌───────────────────────────────────────────────────────────────────────────┐
│ Mod name: SAMAN01.423 Mod Author: Secret Agent Man 1@15269 │
│ Difficulty: Not Hard Date: December 5, 1993 │
│ WWIV Version: 4.23 │
│ Files Affected: BBSOVL1.C │
│ Description: New Subslist │
│ │
└───────────────────────────────────────────────────────────────────────────┘
ALWAYS BUYSC!!!!!!!!!
This is a boxed subs listing. Just replace void subslist in BBSOVl1.C with the
one below.
void sublist(void)
{
int i,i1,abort,oc,os,sn,en;
char s[80],s1[80],s2[80],s3[80],*ss,ch;
oc=curconfsub; os=usub[cursub].subnum;
abort=0;
sn=0;
en=subconfnum-1;
if (okconf(&thisuser)) {
if (uconfsub[1].confnum!=-1) {
nl();
prt(2,get_string(1019));
ch=onek("Q A");
nl();
switch (ch) {
case ' ':
sn=curconfsub;
en=curconfsub;
break;
case 'Q':
return;
}
}
} else
oc=-1;
nl();
ansic_x(1);
pla(get_string(617),&abort);
nl();
i=sn;
while ((i<=en) && (uconfsub[i].confnum!=-1) && (!abort)) {
if ((uconfsub[1].confnum!=-1) && (okconf(&thisuser))) {
setuconf(CONF_SUBS, i, -1);
sprintf(s,"1%s %c0:2 %s",get_string(1021),0
subconfs[uconfsub[i].confnum].designator,
stripcolors(subconfs[uconfsub[i].confnum].name));
#ifndef OPT_EXTRA_COLOR
pla(stripcolors(s),&abort);
#else
pla(s,&abort);
#endif
}
i1=0;
pla("2 Num Net Sub-Title ",&abort);0
npr("7╔═══╦═══════════╦═════════════════════════════════════════╗\r\n",&abor0
t);
while ((i1<num_subs) && (usub[i1].subnum!=-1) && (!abort)) {
sprintf(s,"7║2%3.3s7║",usub[i1].keys);0
if (qsc_q[usub[i1].subnum/32]&(1L<<(usub[i1].subnum%32)))
strcat(s,get_string(3));
else
strcat(s,get_string(4));
if (net_sysnum || (net_num_max>1)) {
if (xsubs[usub[i1].subnum].num_nets) {
if (xsubs[usub[i1].subnum].num_nets>1)
ss=get_string(1022);
else
ss=stripcolors(net_networks[xsubs[usub[i1].subnum].nets[0].net_num]
.name);
if (subboards[usub[i1].subnum].anony & anony_val_net)
sprintf(s1,"1%-8.8s7║",ss);0
else
sprintf(s1,"1%-8.8s7║",ss);0
strcat(s,s1);
} else {
sprintf(s,"7║2%3.3s7║",usub[i1].keys);0
sprintf(s3,"2 %s 7║","Local");0
strcat(s,s3);
}
}
sprintf(s2," 5%-39.39s7 ║",subboards[usub[i1].subnum].name);0
strcat(s,s2);
#ifndef OPT_EXTRA_COLOR
pla(stripcolors(s),&abort);
#else
pla(s,&abort);
#endif
i1++;
}
npr("7╚═══╩═══════════╩═════════════════════════════════════════╝\r\n",&abor0
t);
i++;
nl();
if (!okconf(&thisuser))
break;
}
if (i==0) {
ansic(6);
pla(get_string(5),&abort);
nl();
}
if (okconf(&thisuser))
setuconf(CONF_SUBS, oc, os);
}
7S1ecret 7A1gent 7M1an0