Several small changes

This commit is contained in:
Michiel Broek 2002-11-08 19:33:50 +00:00
parent 5323e1b178
commit cf7948d309
3 changed files with 6 additions and 2 deletions

2
TODO
View File

@ -83,6 +83,8 @@ mbfido:
N: Force processing of arealists so that all tags are forced to N: Force processing of arealists so that all tags are forced to
uppercase. Seems to give problems in some nets. uppercase. Seems to give problems in some nets.
N: Let mbfido areas with a special switch update area descriptions.
mbcico: mbcico:
N: Implement MD5 crypt in binkp protocol driver. N: Implement MD5 crypt in binkp protocol driver.

View File

@ -1663,7 +1663,6 @@ void msged_areas(FILE *fp)
fclose(no); fclose(no);
free(temp); free(temp);
fprintf(fp, "\n");
} }

View File

@ -100,6 +100,8 @@ static void die(int onsig)
*/ */
sprintf(temp, "%s/etc/msg.txt", getenv("MBSE_ROOT")); sprintf(temp, "%s/etc/msg.txt", getenv("MBSE_ROOT"));
if ((fp = fopen(temp, "w")) != NULL) { if ((fp = fopen(temp, "w")) != NULL) {
fprintf(fp, "; msg.txt -- Automatic created by mbsetup %s -- Do not edit!\n;\n", VERSION);
fprintf(fp, "; Mail areas for MsgEd.\n;\n");
msged_areas(fp); msged_areas(fp);
fclose(fp); fclose(fp);
Syslog('+', "Created new %s", temp); Syslog('+', "Created new %s", temp);
@ -113,7 +115,7 @@ static void die(int onsig)
sprintf(temp, "%s/etc/golded.inc", getenv("MBSE_ROOT")); sprintf(temp, "%s/etc/golded.inc", getenv("MBSE_ROOT"));
if ((fp = fopen(temp, "w")) != NULL) { if ((fp = fopen(temp, "w")) != NULL) {
fprintf(fp, "; GoldED.inc -- Automatic created by mbsetup %s -- Do not edit!\n\n", VERSION); fprintf(fp, "; GoldED.inc -- Automatic created by mbsetup %s -- Do not edit!\n\n", VERSION);
fprintf(fp, "; Basic information\n;\n"); fprintf(fp, "; Basic information.\n;\n");
if (strlen(CFG.sysop_name) && CFG.akavalid[0] && CFG.aka[0].zone) { if (strlen(CFG.sysop_name) && CFG.akavalid[0] && CFG.aka[0].zone) {
fprintf(fp, "USERNAME %s\n\n", CFG.sysop_name); fprintf(fp, "USERNAME %s\n\n", CFG.sysop_name);
fprintf(fp, "ADDRESS %s\n", aka2str(CFG.aka[0])); fprintf(fp, "ADDRESS %s\n", aka2str(CFG.aka[0]));
@ -133,6 +135,7 @@ static void die(int onsig)
gold_areas(fp); gold_areas(fp);
} }
fclose(fp);
Syslog('+', "Created new %s", temp); Syslog('+', "Created new %s", temp);
} else { } else {
WriteError("$Could not create %s", temp); WriteError("$Could not create %s", temp);