Fixes for magic announce

This commit is contained in:
Michiel Broek 2004-02-29 15:06:47 +00:00
parent c355e8f03a
commit fb1767f5a6
6 changed files with 16 additions and 3 deletions

View File

@ -9,8 +9,9 @@ v0.51.1 21-Feb-2004
global editor (to Latin-1 for example). Local and netmail
areas must be done by hand because they are most likely not
in a group.
The macro templates are updated, you may want to install the
new ones.
The macro templates are updated, you MUST install the newfiles
macro template at least because the format changed!
Type "make help" in the examples subdirectory to see how.
SETUP.sh:
Changed to support Darwin (OS X). Note that in earlier days

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -346,7 +346,19 @@ long Report(gr_list *ta, long filepos)
}
filepos3 = ftell(fi);
}
/*
* Magic request
*/
if (strlen(T_File.Magic)) {
MacroVars("u", "s", T_File.Magic);
Msg_Macro(fi);
} else {
line = calloc(MAXSTR, sizeof(char));
while ((fgets(line, MAXSTR-2, fi) != NULL) && ((line[0]!='@') || (line[1]!='|'))) {}
free(line);
}
filepos3 = ftell(fi);
Total++;
Size += T_File.SizeKb;
}