From 45366aec6d4bebbdaa455167ad043ef84d817a63 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Thu, 18 Mar 2004 19:55:39 +0000 Subject: [PATCH] Updated magic filenames --- ChangeLog | 5 +++++ mbfido/addbbs.c | 2 -- mbsebbs/mball.c | 7 ++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4affbd0d..4b3d53b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -52,6 +52,8 @@ v0.51.2 06-Mar-2004 one will be announced. Fixed a bug in mbfile kill that destroyed the filebase when a file was deleted or moved. + Doesn't write Magic Request into files description anymore, + this is now handled outsite the description lines. mbfile: Updated kill, index, check, pack, list, adopt, import, move, @@ -78,6 +80,9 @@ v0.51.2 06-Mar-2004 mbsebbs: Updated to the new files database structure. + mball: + Added support for files database Magic request field. + mbsetup: Added auto upgrade for the files database. Changed menus 14, 7.n.6, 10.1 and 8.4. diff --git a/mbfido/addbbs.c b/mbfido/addbbs.c index f051b6b5..431cdc8b 100644 --- a/mbfido/addbbs.c +++ b/mbfido/addbbs.c @@ -87,8 +87,6 @@ int Add_BBS() if (i == 24) break; } - if (strlen(TIC.TicIn.Magic)) - sprintf(frec.Desc[i], "Magic Request: %s", TIC.TicIn.Magic); fseek(fp, 0 - sizeof(frec), SEEK_CUR); fwrite(&frec, sizeof(frec), 1, fp); fclose(fp); diff --git a/mbsebbs/mball.c b/mbsebbs/mball.c index 817b387a..3decdd9c 100644 --- a/mbsebbs/mball.c +++ b/mbsebbs/mball.c @@ -404,7 +404,7 @@ void Masterlist() if (New) fprintf(np, "%s\r\n", temp); - for (z = 0; z <= 25; z++) { + for (z = 0; z < 25; z++) { if (strlen(fdb.Desc[z])) { if ((fdb.Desc[z][0] == '@') && (fdb.Desc[z][1] == 'X')) { 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); + } } } }