TW08a.MOD -- bug fix for TW08.MOD, extended automessage The Warlord #1 @7309 Wed Mar 17 17:42:11 1993 ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Mod Name: TW08a.MOD Mod Author: The Warlord ³ ³ Difficulty: ±°°°°°°°°° Date: 03/17/93 ³ ³ WWIV Version: 4.22 (others, too) ³ ³ Files Affected: MISCCMD.C, FCNS.H ³ ³ Description: This is an extended auto-message mod, see features below. ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Ä Features Ä þ 10 lines, instead of only 3 þ 70 characters per line, instead of only 39 þ Pretty colors all over :) þ You can use colors in the automessage þ Sysop or automessage author can delete the automessage þ /S ends automessage, if it's not 10 lines long. þ /ABT aborts the automessage Ok, the reason I'm releasing this fix is because there were just a few little bugs.. one was that the automessage author couldn't delete the automessage, I forgot to add a simple "|| (usernum == status.amsguser))" in there. Also, I received many complaints from people who liked my colors, but couldn't capture them because I used raw "WWIVANSI". So now you'll have to search for all occurrences of "^C" and replace them with "" (little heart, hit Ctrl-P Ctrl-C in most editors, ASCII char 3). Another solution to this problem would be for more sysops to install E-Mail/Message download mods, I re-released someone's mod as MSGDLTW.MOD (that was before I started numbering mine, and it was also just a re-release, I didn't make it, and I stated that in the mod). If you'd like a copy of that mod, it's available on my system here (see end of this mod for info on addresses/phone number), or I could send it to you in E-Mail, unless Filo would allow it on the modnet (fairly small, I'll check with him and post it if I can). For those who installed TW08.MOD, all of the updates (I hope) are marked with "/* FIX - */", so search for those lines if you've already installed it, and modify them accordingly.. or else you can just re-install the mod totally... [ Step 1 ]: Back up your source! This is always a good idea.. There could be a little cockroach or two in this mod somewhere. :) Example backup command line: pkzip -ex -u source.zip *.c *.h *.mak [ Step 2 ]: Load up MISCCMD.C, and delete the functions: void read_automessage() void write_automessage1() void write_automessage() Block copy the following 3 functions in their place: void read_automessage() { int i,i1,i2,i3,f,len,ptrbeg[10],ptrend[10]; /* FIX - delete ",temp" */ char s[81],l[11][81],anon,buf[512]; slrec ss; /* FIX - delete "temp=curatr;" */ sprintf(s,"%sAUTO.MSG",syscfg.gfilesdir); f=open(s,O_RDWR | O_BINARY); nl(); anon=status.amsganon; if (f<1) { nl(); ansititle("No Auto-Message!"); /* FIX - change "title(" to "ansititle(" */ nl(); } else { len=read(f,(void *)buf,512); close(f); for (i=0; i<10; i++) { ptrbeg[i]=0; ptrend[i]=0; } i=0; i1=0; i2=0; for(i=0; i