From 59de21db8bbe02684ffd801d194b27853c26cf3f Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Thu, 23 May 2002 17:56:37 +0000 Subject: [PATCH] Added check for wrong start area in group setup --- mbsetup/m_fgroup.c | 5 ++++- mbsetup/m_mgroup.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mbsetup/m_fgroup.c b/mbsetup/m_fgroup.c index 4f577a84..70c996a1 100644 --- a/mbsetup/m_fgroup.c +++ b/mbsetup/m_fgroup.c @@ -378,7 +378,10 @@ int EditFGrpRec(int Area) j = select_menu(34); switch(j) { - case 0: + case 0: if (!fgroup.StartArea && strlen(fgroup.AreaFile)) { + errmsg("Areas file defined but no BBS start area"); + break; + } crc1 = 0xffffffff; crc1 = upd_crc32((char *)&fgroup, crc1, sizeof(fgroup)); if (crc != crc1) { diff --git a/mbsetup/m_mgroup.c b/mbsetup/m_mgroup.c index e1dbaba0..32d455d8 100644 --- a/mbsetup/m_mgroup.c +++ b/mbsetup/m_mgroup.c @@ -341,7 +341,10 @@ int EditMGrpRec(int Area) j = select_menu(18); switch(j) { - case 0: + case 0: if (!mgroup.StartArea && strlen(mgroup.AreaFile)) { + errmsg("Areas file defined but no BBS start area"); + break; + } crc1 = 0xffffffff; crc1 = upd_crc32((char *)&mgroup, crc1, sizeof(mgroup)); if (crc != crc1) {