Fixed announce and filefind report problem when there were

This commit is contained in:
Michiel Broek 2005-11-11 20:31:40 +00:00
parent 69ebd332ee
commit ca67bf7260
3 changed files with 22 additions and 11 deletions

View File

@ -14,6 +14,10 @@ v0.83.0 06-Nov-2005
Fixed accepting connections with the chatserver when no
password is given.
mbaff:
Fixed announce and filefind report problem when there were "
characters in the description.
mbsetup:
In users edit screen, removed append record option.
Blocked changing the users unixname.

View File

@ -268,6 +268,7 @@ int Report(gr_list *ta, int filepos)
break;
}
Syslog('m', "Announce %s %s %s", T_File.Echo, T_File.Name, T_File.LName);
if ((fi = OpenMacro(newfiles.Template, newfiles.Language, FALSE)) != NULL) {
/*
* Area block header
@ -303,8 +304,6 @@ int Report(gr_list *ta, int filepos)
* Extra description lines follow
*/
for (i = 1; i < 24; i++) {
// if (strlen(T_File.LDesc[i]))
// MacroVars("t", "s", To_Low(T_File.LDesc[i],newfiles.HiAscii));
fseek(fi, filepos2, SEEK_SET);
if (strlen(T_File.LDesc[i])) {
MacroVars("t", "s", To_Low(T_File.LDesc[i],newfiles.HiAscii));

View File

@ -274,6 +274,14 @@ char *To_Low(char *inp, int High)
memset(&temp, 0, sizeof(temp));
strncpy(temp, inp, 80);
/*
* Change " into ' because the diesel macro processor gets confused by
* the " characters.
*/
for (i = 0; i < strlen(temp); i++)
if (temp[i] == '"')
temp[i] = '\'';
if (High)
return temp;