home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
PRE412.ZIP
/
ASKPOST.MOD
< prev
next >
Wrap
Text File
|
1990-06-17
|
3KB
|
122 lines
Dave Wallace #1 @5806
Thu Jun 07 08:30:03 1990
Invite Activity in Slow Message Bases
This mod to WWIV 4.11 will invite a scanning user to post on a message
base, even if there was nothing new there to read. All of the changes
are in MSGBASE1.C, in two functions. Since I had already installed a
mod in this area, there is one line (marked "/* (3) */") that you
should skip, unless you have installed my BY:line mod. Here goes:
Key:
/*=*/ search for this
/*!*/ changed line
/*+*/ added line
/*-*/ deleted line
(1) In MSGBASE1.C, locate the function void scan(.......). At the
end of this function, about 20 lines up, search for
/*=*/ prt(5,"Validate messages here? ");
/*=*/ if (yn()) {
/*=*/ for (i=1; i<=nummsgs; i++)
/*=*/ if (msgs[i].status & (status_unvalidated |
status_delete))
/*=*/ msgs[i].status &= (~(status_unvalidated |
status_delete));
/*=*/ bchanged=1;
/*=*/ }
/*=*/ }
Add the following line:
/*+*/ #if 0
just before:
/*=*/ if ((!quit) && (!express)) {
/*=*/ nl();
/*=*/ ss=syscfg.sl[thisuser.sl];
Then skip down to:
/*=*/ if (yn())
/*=*/ post();
/*=*/ }
/*=*/ }
/*=*/ savebase();
/*=*/ nl();
and add the one line:
/*+*/ #endif
just before the last line of the function:
/*=*/ }
(2) If your text editor can do a block copy, set it up to copy all
the code between the "#if 0" and "#endif" you just added; this
will cut down on your typing and tend to prevent mistakes. But
if your editor can't do this, just type what I say in step 4.
(3) In the next function, void qscan(int bn, int *ns), look for
/*=*/ {
/*=*/ int i,nextsub,os;
/*=*/ char s[81],s1[81];
and add the line:
/*+*/ slrec ss;
(4) Further down in the same function, look for
/*=*/ if ((nummsgs>0) && (msgs[nummsgs].qscan<=
thisuser.qscnptr[curlsub]))
/*=*/ thisuser.qscnptr[curlsub]=status.qscanptr-1;
/*=*/ if ((nummsgs>0) && (i<=nummsgs))
/*=*/ if (msgs[i].qscan>thisuser.qscnptr[curlsub])
/*=*/ scan(i,2,&nextsub);
and add the following code (which is most of what I just said
to block-copy:
/*+*/ if (!express) {
/*+*/ nl();
/*+*/ ss=syscfg.sl[thisuser.sl];
/*+*/ if (
/*+*/ ((restrict_post & thisuser.restrict)==0) &&
/*+*/ (thisuser.posttoday<ss.posts) &&
/*+*/ (thisuser.sl>=subboards[curlsub].postsl)) {
/*+*/ sprintf(s,"Post on %s? ",subboards[curlsub].name);
/*+*/ prt(5,s);
/*+*/ irt[0]=0;
/*+*/ byline[0] = 0; /* (3) */
/*+*/ if (yn())
/*+*/ post();
/*+*/ }
/*+*/ savebase();
/*+*/ nl();
/*+*/ }
Again, the line marked "/* (3) */" is part of another mod -- if
you didn't have it in the scan function, you shouldn't put it
into the qscan function.
And that's all there is to it. Re-compile and enjoy!
Disclaimer
As usual, if you or any of your users is caught of captured, the
author of this modification will disavow any knowledge of your
actions. Please contact Dave Wallace (19@5803) if further information
about this modification is required.