Updated magic filenames

This commit is contained in:
Michiel Broek 2004-03-18 19:55:39 +00:00
parent 3dd457a305
commit 45366aec6d
3 changed files with 11 additions and 3 deletions

View File

@ -52,6 +52,8 @@ v0.51.2 06-Mar-2004
one will be announced. one will be announced.
Fixed a bug in mbfile kill that destroyed the filebase when a Fixed a bug in mbfile kill that destroyed the filebase when a
file was deleted or moved. file was deleted or moved.
Doesn't write Magic Request into files description anymore,
this is now handled outsite the description lines.
mbfile: mbfile:
Updated kill, index, check, pack, list, adopt, import, move, Updated kill, index, check, pack, list, adopt, import, move,
@ -78,6 +80,9 @@ v0.51.2 06-Mar-2004
mbsebbs: mbsebbs:
Updated to the new files database structure. Updated to the new files database structure.
mball:
Added support for files database Magic request field.
mbsetup: mbsetup:
Added auto upgrade for the files database. Added auto upgrade for the files database.
Changed menus 14, 7.n.6, 10.1 and 8.4. Changed menus 14, 7.n.6, 10.1 and 8.4.

View File

@ -87,8 +87,6 @@ int Add_BBS()
if (i == 24) if (i == 24)
break; break;
} }
if (strlen(TIC.TicIn.Magic))
sprintf(frec.Desc[i], "Magic Request: %s", TIC.TicIn.Magic);
fseek(fp, 0 - sizeof(frec), SEEK_CUR); fseek(fp, 0 - sizeof(frec), SEEK_CUR);
fwrite(&frec, sizeof(frec), 1, fp); fwrite(&frec, sizeof(frec), 1, fp);
fclose(fp); fclose(fp);

View File

@ -404,7 +404,7 @@ void Masterlist()
if (New) if (New)
fprintf(np, "%s\r\n", temp); fprintf(np, "%s\r\n", temp);
for (z = 0; z <= 25; z++) { for (z = 0; z < 25; z++) {
if (strlen(fdb.Desc[z])) { if (strlen(fdb.Desc[z])) {
if ((fdb.Desc[z][0] == '@') && (fdb.Desc[z][1] == 'X')) { if ((fdb.Desc[z][0] == '@') && (fdb.Desc[z][1] == 'X')) {
fprintf(fp, " %s\r\n",fdb.Desc[z]+4); fprintf(fp, " %s\r\n",fdb.Desc[z]+4);
@ -417,6 +417,11 @@ void Masterlist()
} }
} }
} }
if (strlen(fdb.Magic)) {
fprintf(fp, " Magic filerequest: %s\r\n", fdb.Magic);
if (New)
fprintf(np, " Magic filerequest: %s\r\n", fdb.Magic);
}
} }
} }
} }