Testing fix for bluewave
This commit is contained in:
parent
b7fba702f1
commit
40cd037e46
Binary file not shown.
14
bluewave.c
14
bluewave.c
@ -180,7 +180,7 @@ int bwave_scan_area(int confr, int area, int areano, int totmsgs, FILE *fti_file
|
|||||||
totmsgs++;
|
totmsgs++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (area_msgs) {
|
//if (area_msgs) {
|
||||||
|
|
||||||
memset(&mix, 0, sizeof(MIX_REC));
|
memset(&mix, 0, sizeof(MIX_REC));
|
||||||
|
|
||||||
@ -189,7 +189,7 @@ int bwave_scan_area(int confr, int area, int areano, int totmsgs, FILE *fti_file
|
|||||||
mix.numpers = converts(personal_msgs);
|
mix.numpers = converts(personal_msgs);
|
||||||
mix.msghptr = convertl(mixptr);
|
mix.msghptr = convertl(mixptr);
|
||||||
fwrite(&mix, sizeof(MIX_REC), 1, mix_file);
|
fwrite(&mix, sizeof(MIX_REC), 1, mix_file);
|
||||||
}
|
//}
|
||||||
JAM_CloseMB(jb);
|
JAM_CloseMB(jb);
|
||||||
free_message_headers(msghs);
|
free_message_headers(msghs);
|
||||||
return totmsgs;
|
return totmsgs;
|
||||||
@ -291,9 +291,9 @@ void bwave_create_packet() {
|
|||||||
lasttot = totmsgs;
|
lasttot = totmsgs;
|
||||||
totmsgs = bwave_scan_area(i, j, area_count+1, totmsgs, fti_file, mix_file, dat_file, &last_ptr);
|
totmsgs = bwave_scan_area(i, j, area_count+1, totmsgs, fti_file, mix_file, dat_file, &last_ptr);
|
||||||
s_printf(get_string(195), conf.mail_conferences[i]->name, conf.mail_conferences[i]->mail_areas[j]->name, totmsgs - lasttot);
|
s_printf(get_string(195), conf.mail_conferences[i]->name, conf.mail_conferences[i]->mail_areas[j]->name, totmsgs - lasttot);
|
||||||
if (lasttot == totmsgs) {
|
//if (lasttot == totmsgs) {
|
||||||
continue;
|
// continue;
|
||||||
}
|
//}
|
||||||
|
|
||||||
if (area_count == 0) {
|
if (area_count == 0) {
|
||||||
areas = (INF_AREA_INFO **)malloc(sizeof(INF_AREA_INFO *));
|
areas = (INF_AREA_INFO **)malloc(sizeof(INF_AREA_INFO *));
|
||||||
@ -708,11 +708,11 @@ void bwave_upload_reply() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while (fread(&upl_rec, sizeof(UPL_REC), 1, upl_file)) {
|
||||||
|
// find area
|
||||||
confr = -1;
|
confr = -1;
|
||||||
area = -1;
|
area = -1;
|
||||||
|
|
||||||
while (fread(&upl_rec, sizeof(UPL_REC), 1, upl_file)) {
|
|
||||||
// find area
|
|
||||||
for (i=0;i<conf.mail_conference_count;i++) {
|
for (i=0;i<conf.mail_conference_count;i++) {
|
||||||
for (j=0;j<conf.mail_conferences[i]->mail_area_count;j++) {
|
for (j=0;j<conf.mail_conferences[i]->mail_area_count;j++) {
|
||||||
if (strcmp(conf.mail_conferences[i]->mail_areas[j]->qwkname, upl_rec.echotag) == 0) {
|
if (strcmp(conf.mail_conferences[i]->mail_areas[j]->qwkname, upl_rec.echotag) == 0) {
|
||||||
|
Reference in New Issue
Block a user