Fixed announce and filefind report problem when there were
This commit is contained in:
parent
69ebd332ee
commit
ca67bf7260
@ -14,6 +14,10 @@ v0.83.0 06-Nov-2005
|
|||||||
Fixed accepting connections with the chatserver when no
|
Fixed accepting connections with the chatserver when no
|
||||||
password is given.
|
password is given.
|
||||||
|
|
||||||
|
mbaff:
|
||||||
|
Fixed announce and filefind report problem when there were "
|
||||||
|
characters in the description.
|
||||||
|
|
||||||
mbsetup:
|
mbsetup:
|
||||||
In users edit screen, removed append record option.
|
In users edit screen, removed append record option.
|
||||||
Blocked changing the users unixname.
|
Blocked changing the users unixname.
|
||||||
|
@ -268,6 +268,7 @@ int Report(gr_list *ta, int filepos)
|
|||||||
break;
|
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) {
|
if ((fi = OpenMacro(newfiles.Template, newfiles.Language, FALSE)) != NULL) {
|
||||||
/*
|
/*
|
||||||
* Area block header
|
* Area block header
|
||||||
@ -303,8 +304,6 @@ int Report(gr_list *ta, int filepos)
|
|||||||
* Extra description lines follow
|
* Extra description lines follow
|
||||||
*/
|
*/
|
||||||
for (i = 1; i < 24; i++) {
|
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);
|
fseek(fi, filepos2, SEEK_SET);
|
||||||
if (strlen(T_File.LDesc[i])) {
|
if (strlen(T_File.LDesc[i])) {
|
||||||
MacroVars("t", "s", To_Low(T_File.LDesc[i],newfiles.HiAscii));
|
MacroVars("t", "s", To_Low(T_File.LDesc[i],newfiles.HiAscii));
|
||||||
|
@ -274,6 +274,14 @@ char *To_Low(char *inp, int High)
|
|||||||
memset(&temp, 0, sizeof(temp));
|
memset(&temp, 0, sizeof(temp));
|
||||||
strncpy(temp, inp, 80);
|
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)
|
if (High)
|
||||||
return temp;
|
return temp;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user