Aka matching in group reports
This commit is contained in:
parent
d6c8c55f16
commit
6bc3cd03a7
@ -46,6 +46,7 @@ void WriteMailGroups(FILE *fp, faddr *f)
|
|||||||
int Count = 0, First = TRUE;
|
int Count = 0, First = TRUE;
|
||||||
char *Group, *temp;
|
char *Group, *temp;
|
||||||
FILE *gp;
|
FILE *gp;
|
||||||
|
faddr *g;
|
||||||
|
|
||||||
temp = calloc(128, sizeof(char));
|
temp = calloc(128, sizeof(char));
|
||||||
fprintf(fp, "Dear %s\r\r", nodes.Sysop);
|
fprintf(fp, "Dear %s\r\r", nodes.Sysop);
|
||||||
@ -71,11 +72,10 @@ void WriteMailGroups(FILE *fp, faddr *f)
|
|||||||
|
|
||||||
fseek(gp, mgrouphdr.hdrsize, SEEK_SET);
|
fseek(gp, mgrouphdr.hdrsize, SEEK_SET);
|
||||||
while (fread(&mgroup, mgrouphdr.recsize, 1, gp) == 1) {
|
while (fread(&mgroup, mgrouphdr.recsize, 1, gp) == 1) {
|
||||||
|
g = bestaka_s(fido2faddr(mgroup.UseAka));
|
||||||
if ((!strcmp(mgroup.Name, Group)) &&
|
if ((!strcmp(mgroup.Name, Group)) &&
|
||||||
(mgroup.UseAka.zone == f->zone) &&
|
(g->zone == f->zone) && (g->net == f->net) &&
|
||||||
(mgroup.UseAka.net == f->net) &&
|
(g->node == f->node) && (g->point == f->point)) {
|
||||||
(mgroup.UseAka.node == f->node) &&
|
|
||||||
(mgroup.UseAka.point == f->point)) {
|
|
||||||
fprintf(fp, "%-12s %s\r", mgroup.Name, mgroup.Comment);
|
fprintf(fp, "%-12s %s\r", mgroup.Name, mgroup.Comment);
|
||||||
Count++;
|
Count++;
|
||||||
break;
|
break;
|
||||||
@ -97,6 +97,7 @@ void WriteFileGroups(FILE *fp, faddr *f)
|
|||||||
int Count = 0, First = TRUE;
|
int Count = 0, First = TRUE;
|
||||||
char *Group, *temp;
|
char *Group, *temp;
|
||||||
FILE *gp;
|
FILE *gp;
|
||||||
|
faddr *g;
|
||||||
|
|
||||||
temp = calloc(128, sizeof(char));
|
temp = calloc(128, sizeof(char));
|
||||||
fprintf(fp, "Dear %s\r\r", nodes.Sysop);
|
fprintf(fp, "Dear %s\r\r", nodes.Sysop);
|
||||||
@ -122,11 +123,10 @@ void WriteFileGroups(FILE *fp, faddr *f)
|
|||||||
|
|
||||||
fseek(gp, fgrouphdr.hdrsize, SEEK_SET);
|
fseek(gp, fgrouphdr.hdrsize, SEEK_SET);
|
||||||
while (fread(&fgroup, fgrouphdr.recsize, 1, gp) == 1) {
|
while (fread(&fgroup, fgrouphdr.recsize, 1, gp) == 1) {
|
||||||
|
g = bestaka_s(fido2faddr(fgroup.UseAka));
|
||||||
if ((!strcmp(fgroup.Name, Group)) &&
|
if ((!strcmp(fgroup.Name, Group)) &&
|
||||||
(fgroup.UseAka.zone == f->zone) &&
|
(g->zone == f->zone) && (g->net == f->net) &&
|
||||||
(fgroup.UseAka.net == f->net) &&
|
(g->node == f->node) && (g->point == f->point)) {
|
||||||
(fgroup.UseAka.node == f->node) &&
|
|
||||||
(fgroup.UseAka.point == f->point)) {
|
|
||||||
fprintf(fp, "%-12s %s\r", fgroup.Name, fgroup.Comment);
|
fprintf(fp, "%-12s %s\r", fgroup.Name, fgroup.Comment);
|
||||||
Count++;
|
Count++;
|
||||||
break;
|
break;
|
||||||
@ -209,9 +209,9 @@ void MgrNotify(faddr *t, char *Buf, FILE *tmp)
|
|||||||
if (!strncasecmp(Buf, "on", 2))
|
if (!strncasecmp(Buf, "on", 2))
|
||||||
nodes.Notify = TRUE;
|
nodes.Notify = TRUE;
|
||||||
else if (!strncasecmp(Buf, "off", 3))
|
else if (!strncasecmp(Buf, "off", 3))
|
||||||
nodes.Notify = FALSE;
|
nodes.Notify = FALSE;
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|
||||||
UpdateNode();
|
UpdateNode();
|
||||||
memcpy(&Node, faddr2fido(t), sizeof(fidoaddr));
|
memcpy(&Node, faddr2fido(t), sizeof(fidoaddr));
|
||||||
|
Reference in New Issue
Block a user