home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
QSCANOUT.MOD
< prev
next >
Wrap
Text File
|
1990-04-11
|
3KB
|
93 lines
Pc Guru #1 @3450
Sun Apr 08 05:36:20 1990
Filter out a Sub
This mod was written to make it easy for the user to QSCAN out a sub. As
WWIV is written now, the user must quit the new message scan, go to the
defaults section, qscan out the sub, and then start the newscan again.
With this mod, the user can hit 'F' (or, another key of your choosing),
and the current sub will be qscaned out, and advanced one sub.
PC Guru 1@3450
Sysop of The B.S. Box BBS
(314) 434-3470
USR HST 14.4k
----------------------------------------------------------------------------
In 'MSGBASE1.C' search for 'void scan(int msgnum,.....'
void scan(int msgnum, int optype, int *nextsub)
{
char s[81],s1[81],s2[81],s3[81],s4[81],s5[81],s6[81],*b,*ss1,*f; /*Add f */
int i,i1,i2,done,quit,abort,next,val,realexpress;
int tst,hold,hold1,numrply,hold2;
.
.
. /* Search for case 'B', and add the following after it */
.
case 'B': /* Search */
.
.
break;
/* NOTE - This install this if you have 64 subs */
/* If you only have 32 subs, use the next */
/* section of code */
case 'F': /* BEGIN MOD */
f=usub[cursub].keys;
for (i=0; i<64; i++) /* MOD */
{ /* MOD */
if (strcmp(usub[i].keys,f)==0) /* MOD */
if (usub[i].subnum<32) /* MOD */
thisuser.qscn ^=((1L) << (usub[i].subnum)); /* MOD */
else /* MOD */
thisuser.qscn2 ^=((1L) << (usub[i].subnum-32)); /* MOD */
} /* MOD */
if (*nextsub!=0) /* MOD */
{ /* MOD */
*nextsub=1; /* MOD */
done=1; /* MOD */
quit=1; /* MOD */
} /* MOD */
break; /* END MOD */
/* NOTE - This install this if you have 32 subs */
/* If you have 64 subs, use the previous */
/* section of code */
case 'F': /* BEGIN MOD */
f=usub[cursub].keys;
for (i=0; i<32; i++) {
if (strcmp(usub[i].keys,f)==0)
thisuser.qscn ^=((1L) << (usub[i].subnum));
}
if (*nextsub!=0) {
*nextsub=1;
done=1;
quit=1;
}
break; /* End MOD */
____________________________________________________________________________
A few more lines should probably be added to this code. A good 2 line addition
would to be prompt the user before it actually qscans the sub out. A simple
prt and if(yn()) call would to it. If you can't figure out how to do that on
your own, email me and I'll write up a more complete version.
PC Guru 1@3450