home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
EDIT12.MOD
< prev
next >
Wrap
Text File
|
1995-07-03
|
6KB
|
154 lines
Apollo #1 @11138
Fri Jun 30 01:25:39 1995
┌──────────────────────────────────────────────────────Filo─Header─(c)────┐
│ Mod Name: Edit12.424 Mod Authors: Editor 149 │
│ Difficulty: █████▒▒▒▒▒(3.5/10) @11138.WWIVNet │
│ WWIV Version: v4.24 @2939 TERRANet, IceNet, SierraLink │
│ Date: 07/15/94 @2938 CyberNet │
│ Updated for v4.24: 06/27/95. │
│ Files Affected: MSGBASE.C │
│ Description: Allows you to Re-Use the title of the message you are │
│ replying to, Allows "Built-In" Titles on Form Letters. │
└─────────────────────────────────────────────────────────────────────────┘
--> When you reply to a post or E-Mail, this shows RE: and the old title.
If you hit enter, it uses that as the title and eliminates the RE: line
inside the message. If you hit anyother key, that key becomes the first
letter of the new title.
--> If you make the first line of your form letter start with "TI: ", then
the the next 54 characters of that line become the title, you can change
the title, or hit enter to accept it. It makes form letters more
managable, I always use the same titles anyway!
Copyright Disclaimer:
(c) 1995 Editor a.k.a #149@Retreat of the Gods (209) 537-2808
This mod is written for use by REGISTERED WWIV SysOps, as they are the only
ones who should have the source code. SysOps may freely upload this mod to
any BBS or online service provided it is not edited in any way except to
remove messge headers and/or taglines. Shareware CDROM vendors are prohibited
from distributing this mod without EXPRESS WRITTEN CONSENT from the author &
Wayne Bell, Author of WWIV BBS Software.
Parts of the code shown in this mod are:
Copyright (C) 1988-1993 by Wayne Bell.
BACKUP your Source
LEGEND:
= old code, Search for this
+ new code
- Remove or comment out this line
Load up: MSGBASE.C
Find: void load_workspace(char *fnx, int no_edit)
= sh_read(i, (void *) b,l);
= sh_close(i);
= if (b[l-1]!=26)
= b[l++]=26;
+ if(strnicmp(b, "TI:", 3)==0) { /* Edit12.424 */
+ i=0; /* Edit12.424 */
+ do { /* Edit12.424 */
+ irt[i]=b[i]; /* Edit12.424 */
+ i++; /* Edit12.424 */
+ } while(b[i]!=10 && b[i]!=13 && i<60);
+ /* Edit12.424 */
+ irt[i]=NULL; /* Edit12.424 */
+ b=b+i; /* Edit12.424 */
+ l-=i; /* Edit12.424 */
+ } /* Edit12.424 */
= sprintf(s,"%sINPUT.MSG",syscfgovr.tempdir);
= i=sh_open(s,O_RDWR | O_CREAT | O_BINARY,S_IREAD | S_IWRITE);
= sh_write(i, (void *)b,l);
= sh_close(i);
Find: void inmsg(messagerec *m1, char *title, int *anony, int needtitle,
char *aux, int fsed, char *dest, int flags)
= for (i=0; i<maxli; i++)
= lin[i*LEN]=0;
= ro[0]=0;
= }
=
= nl();
= helpl=6;
+ if(strncmp(irt, "TI:", 3)!=0) { /* Edit12.424 */
= if (okansi()) {
+ if(irt[0]) { /* Edit12.424 */
+ if(strnicmp(stripcolors(irt), get_string(940), 3)!=0)
+ /* Edit12.424 */
+ npr("Enter Title or Press [Return] for:\r\n 4%s%-.54s0\r\n",
+ get_string(940), irt);
+ /* Edit12.424 */
+ else /* Edit12.424 */
+ npr("Enter Title or Press [Return] for:\r\n 4%-.60s0\r\n",
+ irt);
+ /* Edit12.424 */
+ } /* Edit12.424 */
= prt(2,get_string(1006));
= mpl(60);
= inputl(title,60);
= } else {
+ if(irt[0]) { /* Edit12.424 */
+ if(strnicmp(stripcolors(irt), get_string(940), 3)!=0)
+ /* Edit12.424 */
+ npr("Enter Title or Press [Return] for:\r\n 4%s%-.54s0\r\n",
+ get_string(940), irt);
+ /* Edit12.424 */
+ else /* Edit12.424 */
+ npr("Enter Title or Press [Return] for:\r\n 4%-.60s0\r\n",
+ irt);
+ /* Edit12.424 */
+ } /* Edit12.424 */
= pl(get_string(626));
= outstr(get_string(1006));
= inputl(title,60);
= }
+ if (irt[0]) { /* Edit12.424 */
+ if (title[0]==0) { /* Edit12.424 */
+ if (strnicmp(stripcolors(irt), get_string(940), 3)!=0) {
+ /* Edit12.424 */
+ sprintf(title, "%s%s", get_string(940), irt);
+ /* Edit12.424 */
+ irt[0]=0; /* Edit12.424 */
+ } else { /* Edit12.424 */
+ sprintf(title, "%s", irt); /* Edit12.424 */
+ irt[0]=0; /* Edit12.424 */
+ } /* Edit12.424 */
+ } /* Edit12.424 */
= }
+ } else { /* Edit12.424 */
+ strcpy(title, irt+4); /* Edit12.424 */
+ npr("2%s 4%.54s0\n\r", get_string(1006), title);
+ /* Edit12.424 */
+ irt[0]=0; /* Edit12.424 */
+ } /* Edit12.424 */
= if ((title[0]==0) && (needtitle)) {
= pl(get_string(14));
= m.stored_as=0xffffffff;
= *m1=m;
.
. // Way down. About 315 lines...
.
= fsh_close(q_fp);
= }
=
= if (irt[0]) {
+ if (strnicmp(stripcolors(irt), get_string(940), 3)!=0)
+ /* Edit12.424 */
+ sprintf(s,"%s%s",get_string(940),irt);
+ else /* Edit12.424 */
+ sprintf(s,"%s", irt); /* Edit12.424 */
= addline(b,s,&l1);
= if (irt_sub[0]) {
= sprintf(s,"%s%s", get_string(1509), irt_sub);
done.
WARNING!!!! BACKUP EVERYTHING!
Save, Recompile and run.
Hope you didn't break a sweat on that one!
Editor