Added safety for toplevel areamgr systems
This commit is contained in:
@@ -451,7 +451,12 @@ int EditFGrpRec(int Area)
|
||||
case 17:E_INT( 13,46, fgroup.AddProm, "The ^Promillage^ to add or substract of the filecost")
|
||||
case 18:E_BOOL(14,46, fgroup.DivideCost, "^Divide^ the cost over all downlinks or charge each link full cost")
|
||||
case 19:E_BOOL(15,46, fgroup.AutoChange, "^Automatic change areas^ when a new arealist is received")
|
||||
case 20:E_BOOL(16,46, fgroup.UserChange, "Create new areas when ^users^ request new tic areas")
|
||||
case 20:tmp = edit_bool(16,46, fgroup.UserChange, (char *)"Create new areas when ^users^ request new tic areas");
|
||||
if (tmp && !fgroup.UpLink.zone)
|
||||
errmsg("It looks like you are at the toplevel, no Uplink defined");
|
||||
else
|
||||
fgroup.UserChange = tmp;
|
||||
break;
|
||||
case 21:E_BOOL(17,46, fgroup.Replace, "Set ^Replace^ in new created tic areas")
|
||||
case 22:E_BOOL(18,46, fgroup.DupCheck, "Set ^Dupe check^ in new created tic areas")
|
||||
case 23:E_BOOL(19,46, fgroup.Secure, "Set ^Secure^ tic processing in new created tic areas")
|
||||
|
@@ -394,7 +394,12 @@ int EditMGrpRec(int Area)
|
||||
break;
|
||||
E_BOOL(13,57, mgroup.Deleted, "Is this group ^Deleted^")
|
||||
case 14:E_BOOL(14,57, mgroup.AutoChange, "^Auto change^ areas from new areas lists")
|
||||
case 15:E_BOOL(15,57, mgroup.UserChange, "^Auto add/delete^ areas from downlinks requests")
|
||||
case 15:tmp = edit_bool(15,57, mgroup.UserChange, (char *)"^Auto add/delete^ areas from downlinks requests");
|
||||
if (tmp && !mgroup.UpLink.zone)
|
||||
errmsg("It looks like you are the toplevel, no Uplink defined");
|
||||
else
|
||||
mgroup.UserChange = tmp;
|
||||
break;
|
||||
case 16:tmp = PickAka((char *)"9.1.16", TRUE);
|
||||
if (tmp != -1)
|
||||
memcpy(&mgroup.UseAka, &CFG.aka[tmp], sizeof(fidoaddr));
|
||||
|
Reference in New Issue
Block a user