All fidonet domain names are now max. 8 characters

This commit is contained in:
Michiel Broek 2003-11-02 12:38:50 +00:00
parent 773d74d55c
commit ca5a7607d4
4 changed files with 182 additions and 193 deletions

View File

@ -25,6 +25,8 @@ v0.39.1 22-Oct-2003
In node editor, fixed error message when there was no more In node editor, fixed error message when there was no more
room for new nodes to point to the right menus. room for new nodes to point to the right menus.
Added support for tar compressed archives. Added support for tar compressed archives.
Changed all fidonet domain names to maximum 8 characters so
that we now follow the FTSC specs.
v0.39.0 09-Oct-2003 - 22-Oct-2003 v0.39.0 09-Oct-2003 - 22-Oct-2003

3
TODO
View File

@ -145,9 +145,6 @@ mbnewusr:
mbsetup: mbsetup:
N: Add a check for double areatag names. N: Add a check for double areatag names.
U: PickAka function lets mbsetup crash if domain is 12 characters
-- Check, still so?
N: Use some sort of sorting for the system aka's and make sure the N: Use some sort of sorting for the system aka's and make sure the
main aka with zone's is listed first. Having zone's mixed gives main aka with zone's is listed first. Having zone's mixed gives
too high outbound stats and the outbound is scanned multiple times. too high outbound stats and the outbound is scanned multiple times.

View File

@ -280,7 +280,7 @@ int EditFidoRec(int Area)
for (;;) { for (;;) {
set_color(WHITE, BLACK); set_color(WHITE, BLACK);
show_str( 7,26,40, fidonet.comment); show_str( 7,26,40, fidonet.comment);
show_str( 8,26,12, fidonet.domain); show_str( 8,26,8, fidonet.domain);
show_bool(9,26, fidonet.available); show_bool(9,26, fidonet.available);
show_bool(10,26, fidonet.deleted); show_bool(10,26, fidonet.deleted);
show_str(11,26,8, fidonet.nodelist); show_str(11,26,8, fidonet.nodelist);
@ -296,8 +296,7 @@ int EditFidoRec(int Area)
j = select_menu(17); j = select_menu(17);
switch(j) { switch(j) {
case 0: case 0: crc1 = 0xffffffff;
crc1 = 0xffffffff;
crc1 = upd_crc32((char *)&fidonet, crc1, sizeof(fidonet)); crc1 = upd_crc32((char *)&fidonet, crc1, sizeof(fidonet));
if (crc != crc1) { if (crc != crc1) {
if (yes_no((char *)"Record is changed, save") == 1) { if (yes_no((char *)"Record is changed, save") == 1) {
@ -318,32 +317,25 @@ int EditFidoRec(int Area)
IsDoing("Browsing Menu"); IsDoing("Browsing Menu");
free(temp); free(temp);
return 0; return 0;
case 1: case 1: E_STR(7,26,40, fidonet.comment, "The ^Comment^ for this network name")
E_STR(7,26,40, fidonet.comment, "The ^Comment^ for this network name") case 2: E_STR(8, 26,8, fidonet.domain, "The ^Name^ of the network without dots")
case 3: E_BOOL(9,26, fidonet.available, "Is this network ^Available^ for use")
case 2: case 4: E_BOOL(10,26, fidonet.deleted, "Is this netword ^Deleted^")
E_STR(8, 26,12, fidonet.domain, "The ^Name^ of the network without dots") case 5: E_STR(11,26,8, fidonet.nodelist, "The name of the ^Primary Nodelist^ for this network")
case 3:
E_BOOL(9,26, fidonet.available, "Is this network ^Available^ for use")
case 4:
E_BOOL(10,26, fidonet.deleted, "Is this netword ^Deleted^")
case 5:
E_STR(11,26,8, fidonet.nodelist, "The name of the ^Primary Nodelist^ for this network")
case 6: case 6:
case 7: case 7:
case 8: case 8:
case 9: case 9:
case 10: case 10:
case 11: case 11: strcpy(fidonet.seclist[j-6].nodelist,
strcpy(fidonet.seclist[j-6].nodelist, edit_str(j+6,26,8, fidonet.seclist[j-6].nodelist, (char *)"The secondary ^nodelist^ or ^pointlist^ name for this domain")); edit_str(j+6,26,8, fidonet.seclist[j-6].nodelist,
(char *)"The secondary ^nodelist^ or ^pointlist^ name for this domain"));
if (strlen(fidonet.seclist[j-6].nodelist)) { if (strlen(fidonet.seclist[j-6].nodelist)) {
do { do {
sprintf(temp, "%d:%d/%d", fidonet.seclist[j-6].zone, fidonet.seclist[j-6].net, fidonet.seclist[j-6].node); sprintf(temp, "%d:%d/%d", fidonet.seclist[j-6].zone,
strcpy(temp, edit_str(j+6,36,17, temp, (char *)"The top ^fidonet aka^ for this nodelist (zone:net/node)")); fidonet.seclist[j-6].net, fidonet.seclist[j-6].node);
strcpy(temp, edit_str(j+6,36,17, temp,
(char *)"The top ^fidonet aka^ for this nodelist (zone:net/node)"));
if ((strstr(temp, ":") == NULL) || (strstr(temp, "/") == NULL)) { if ((strstr(temp, ":") == NULL) || (strstr(temp, "/") == NULL)) {
working(2, 0, 0); working(2, 0, 0);
working(0, 0, 0); working(0, 0, 0);
@ -358,14 +350,12 @@ int EditFidoRec(int Area)
fidonet.seclist[j-6].node = 0; fidonet.seclist[j-6].node = 0;
} }
break; break;
case 12: case 12:
case 13: case 13:
case 14: case 14:
case 15: case 15:
case 16: case 16:
case 17: case 17:E_INT(j,74, fidonet.zone[j-12], "A ^Zone number^ which belongs to this domain (1..4095)")
E_INT(j,74, fidonet.zone[j-12], "A ^Zone number^ which belongs to this domain (1..4095)")
} }
} }

View File

@ -952,7 +952,7 @@ void e_uucp(void)
show_int( 8,19, CFG.UUCPgate.net); show_int( 8,19, CFG.UUCPgate.net);
show_int( 9,19, CFG.UUCPgate.node); show_int( 9,19, CFG.UUCPgate.node);
show_int(10,19, CFG.UUCPgate.point); show_int(10,19, CFG.UUCPgate.point);
show_str(11,19,12, CFG.UUCPgate.domain); show_str(11,19,8, CFG.UUCPgate.domain);
j = select_menu(5); j = select_menu(5);
switch(j) { switch(j) {
@ -961,7 +961,7 @@ void e_uucp(void)
case 2: E_INT( 8,19, CFG.UUCPgate.net, "The ^Net^ number for the UUCP gateway") case 2: E_INT( 8,19, CFG.UUCPgate.net, "The ^Net^ number for the UUCP gateway")
case 3: E_INT( 9,19, CFG.UUCPgate.node, "The ^Node^ number for the UUCP gateway") case 3: E_INT( 9,19, CFG.UUCPgate.node, "The ^Node^ number for the UUCP gateway")
case 4: E_INT( 10,19, CFG.UUCPgate.point, "The ^Point^ number for the UUCP gateway") case 4: E_INT( 10,19, CFG.UUCPgate.point, "The ^Point^ number for the UUCP gateway")
case 5: E_STR( 11,19,11, CFG.UUCPgate.domain, "The ^FTN Domain^ for the UUCP gateway without a dot") case 5: E_STR( 11,19,8, CFG.UUCPgate.domain, "The ^FTN Domain^ for the UUCP gateway without a dot")
} }
} }
} }
@ -1088,7 +1088,7 @@ void e_aka(int Area)
show_int( 8,19, CFG.aka[Area].net); show_int( 8,19, CFG.aka[Area].net);
show_int( 9,19, CFG.aka[Area].node); show_int( 9,19, CFG.aka[Area].node);
show_int(10,19, CFG.aka[Area].point); show_int(10,19, CFG.aka[Area].point);
show_str(11,19,12, CFG.aka[Area].domain); show_str(11,19,8, CFG.aka[Area].domain);
show_bool(12,19, CFG.akavalid[Area]); show_bool(12,19, CFG.akavalid[Area]);
j = select_menu(6); j = select_menu(6);
@ -1098,7 +1098,7 @@ void e_aka(int Area)
case 2: E_INT( 8,19, CFG.aka[Area].net, "The ^Net^ number for this aka") case 2: E_INT( 8,19, CFG.aka[Area].net, "The ^Net^ number for this aka")
case 3: E_INT( 9,19, CFG.aka[Area].node, "The ^Node^ number for this aka") case 3: E_INT( 9,19, CFG.aka[Area].node, "The ^Node^ number for this aka")
case 4: E_INT( 10,19, CFG.aka[Area].point, "The ^Point^ number for this node (if any)") case 4: E_INT( 10,19, CFG.aka[Area].point, "The ^Point^ number for this node (if any)")
case 5: E_STR( 11,19,11, CFG.aka[Area].domain, "The ^FTN Domain^ for this aka without a dot (ie no .org)") case 5: E_STR( 11,19,8, CFG.aka[Area].domain, "The ^FTN Domain^ for this aka without a dot (ie no .org)")
case 6: E_BOOL(12,19, CFG.akavalid[Area], "Is this aka ^available^") case 6: E_BOOL(12,19, CFG.akavalid[Area], "Is this aka ^available^")
} }
} }