Added check for wrong start area in group setup

This commit is contained in:
Michiel Broek 2002-05-23 17:56:37 +00:00
parent 81c87eb1d6
commit 59de21db8b
2 changed files with 8 additions and 2 deletions

View File

@ -378,7 +378,10 @@ int EditFGrpRec(int Area)
j = select_menu(34); j = select_menu(34);
switch(j) { 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 = 0xffffffff;
crc1 = upd_crc32((char *)&fgroup, crc1, sizeof(fgroup)); crc1 = upd_crc32((char *)&fgroup, crc1, sizeof(fgroup));
if (crc != crc1) { if (crc != crc1) {

View File

@ -341,7 +341,10 @@ int EditMGrpRec(int Area)
j = select_menu(18); j = select_menu(18);
switch(j) { 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 = 0xffffffff;
crc1 = upd_crc32((char *)&mgroup, crc1, sizeof(mgroup)); crc1 = upd_crc32((char *)&mgroup, crc1, sizeof(mgroup));
if (crc != crc1) { if (crc != crc1) {