home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
CEREBRUM
/
WT138A.ZIP
/
WT-3.MOD
< prev
next >
Wrap
Text File
|
1997-03-28
|
3KB
|
77 lines
This mod, #3 in the WWIVToss series, enables the user to manually input
a TO: line for Fido-type networks, if they are 'P'osting a message, and
not writing one 'W'ith regards to another one.
Minor changes/fixes added by Weatherman.
Load up MSGBASE.C. Look for these lines:
if (!fsed) {
outstr(get_string(627));
pln(maxli);
pl(get_string(628));
and add these 2 lines *above* it.
if (irt_name[0]==0)
get_to_name(aux);
A Little further down, look for the "exists" section, and add the
marked lines.
if (irt[0]!='½') /* Add */
{ /* Add */
sprintf(s,"%s%s",get_string(940),irt); /* Exists */
addline(b,s,&l1); /* Exists */
if (irt_sub[0]) { /* Exists */
sprintf(s,"%s%s", get_string(1509), irt_sub); /* Exists */
addline(b,s,&l1); /* Exists */
} /* Exists */
} /* Add */
else /* Add */
irt_name[0]=0; /* Add */
if (irt_name[0] && !(strcmp(aux, "EMAIL"))) { /* Exists */
sprintf(s,"%s%s",get_string(941),irt_name); /* Exists */
addline(b,s,&l1); /* Exists */
} /* Exists */
addline(b,"",&l1); /* Exists */
} /* Exists */
/* Exists */
if (fsed) { /* Exists */
Add this function at the end of the file.
void get_to_name(char *aux)
{
char s[80];
int i;
xtrasubsnetrec *xnp;
if (xsubs[curlsub].num_nets)
{
for (i=0; i<xsubs[curlsub].num_nets; i++)
{
xnp=&xsubs[curlsub].nets[i];
if ((net_networks[xnp->net_num].type) && strcmp(aux, "EMAIL"))
{
npr("1Who Should This Message Be Addressed To? ([ENTER] for All)\r\n");
mpl(40);
inputl(s,40);
if (s[0]==0)
strcpy(irt_name,"ALL");
else
strcpy(irt_name,s);
strcpy(irt,"½");
}
}
}
}
Don't forget to prototype get_to_name in FCNS.H. You'll have
to recompile the whole BBS, but it should work just fine.