Fixed notation of numbered groups in golded.inc

This commit is contained in:
Michiel Broek 2006-03-29 18:51:35 +00:00
parent 528238378a
commit 48b0ee3bf8
4 changed files with 11 additions and 5 deletions

View File

@ -6,6 +6,10 @@ v0.83.17 27-Mar-2006
mbfido:
Seenby addresses in the internal tables did not store the
point numbers.
Fixed notation of numbered groups in golded.inc.
mbsetup:
Fixed notation of numbered groups in golded.inc.
v0.83.16 13-Mar-2006 - 27-Mar-2006

View File

@ -406,7 +406,7 @@ void gold_areas(FILE *fp)
fread(&mgrouphdr, sizeof(mgrouphdr), 1, fil);
while (fread(&mgroup, mgrouphdr.recsize, 1, fil) == 1) {
if (mgroup.Active && !strcmp(msgs.Group, mgroup.Name) && mgroup.GoldEDgroup) {
snprintf(groupid, 13, "%d", mgroup.GoldEDgroup);
snprintf(groupid, 13, "#%03d", mgroup.GoldEDgroup);
break;
}
}

View File

@ -1832,7 +1832,7 @@ void gold_areas(FILE *fp)
fread(&mgrouphdr, sizeof(mgrouphdr), 1, fil);
while (fread(&mgroup, mgrouphdr.recsize, 1, fil) == 1) {
if (mgroup.Active && !strcmp(msgs.Group, mgroup.Name) && mgroup.GoldEDgroup) {
snprintf(groupid, 13, "%d", mgroup.GoldEDgroup);
snprintf(groupid, 13, "#%03d", mgroup.GoldEDgroup);
break;
}
}

View File

@ -376,7 +376,8 @@ int EditMGrpRec(int Area)
show_str( 19,42,12, mgroup.AreaFile);
show_charset(14,70, mgroup.Charset);
show_int( 15, 70, mgroup.GoldEDgroup);
snprintf(temp, 5, "#%03d", mgroup.GoldEDgroup);
show_str( 15,70, 5, temp);
j = select_menu(21);
switch(j) {
@ -738,7 +739,8 @@ int mail_group_doc(FILE *fp, FILE *toc, int page)
add_webtable(wp, (char *)"Auto add/del areas", getboolean(mgroup.AutoChange));
add_webtable(wp, (char *)"User add/del areas", getboolean(mgroup.UserChange));
add_webtable(wp, (char *)"Default charset", getftnchrs(mgroup.Charset));
add_webdigit(wp, (char *)"GoldED groupid", mgroup.GoldEDgroup);
snprintf(temp, 5, "#%03d", mgroup.GoldEDgroup);
add_webtable(wp, (char *)"GoldED groupid", temp);
tt = (time_t)mgroup.StartDate;
add_webtable(wp, (char *)"Start area date", ctime(&tt));
tt = (time_t)mgroup.LastDate;
@ -834,7 +836,7 @@ int mail_group_doc(FILE *fp, FILE *toc, int page)
fprintf(fp, " Auto add/del areas %s\n", getboolean(mgroup.AutoChange));
fprintf(fp, " User add/del areas %s\n", getboolean(mgroup.UserChange));
fprintf(fp, " Default charset %s\n", getftnchrs(mgroup.Charset));
fprintf(fp, " GoldED groupid %d\n", mgroup.GoldEDgroup);
fprintf(fp, " GoldED groupid #%03d\n", mgroup.GoldEDgroup);
tt = (time_t)mgroup.StartDate;
fprintf(fp, " Start area date %s", ctime(&tt));
tt = (time_t)mgroup.LastDate;