From 40cd037e467b110783da932cef5982ada3500f65 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 21 Sep 2017 21:45:24 +1000 Subject: [PATCH] Testing fix for bluewave --- ansis_default/bulletin1.ans | Bin 5601 -> 5771 bytes bluewave.c | 18 +++++++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ansis_default/bulletin1.ans b/ansis_default/bulletin1.ans index ca47a0ec265ab93d9c8a68c2288d95f9685d979d..fb07aaeeb0bf773169c617d249ba3513476cf7e1 100644 GIT binary patch delta 594 zcmaE;-L1PJjEzM)+R$>cG@IUJZ#M49i`m>J`>@MS=3%!2N*EbV4q#8_0;;fZmX0aMW@E6_`P|n{_$;m>>$EB9m*mot3~kOd(2c zLjceMu)zjUbIx(6DqtwP4^;)#I@z8l3!(^WIM^suHMb`_@`z17%@Yc71x%+BZy(5+ zFzycCWQaV>r?PyZ_Q?LaeS4FF!hHx(KyfkD2#^%iW>`>6=2NT(g%#9s_kd>Hg(`ts z12X77h=2+kLJb2eRRCGY3krT~W0PD3>1YEa!$2BQtpkeO0qQ_9%*0vR02FN?r=go; z1a&0X_S<)Wx*$%QY`||L2Mrjoy|;O}pjI0jLF2TW|1BdM*m8ximn9_<^hUt zAoe-jijdTxdtX7EoMUx1bI$*Nb7AgQKUSXlY{ucS*Y#WHJZ=MzUCN$^oUP#wtK)!e zSQ7AaBO(GnS#OdwKg2gSk9);!UHo#t4ft3*EqET_Z0S;o00*V3Qr8d33}Luj?kP$L zc%wrlfJ6qBxq#Qk9DeJ&V>#n-0BMS@X5+1~uZNP(Rb1C5+jvY;7(Xq2P`j_}pmT#!aUClqXAYX7+3grQsgnlN5|-7GUTtWMiQ Nm|9eoBO6a@OFsavpP~Q& diff --git a/bluewave.c b/bluewave.c index 29c5fae..3f25097 100644 --- a/bluewave.c +++ b/bluewave.c @@ -81,7 +81,7 @@ int bwave_scan_area(int confr, int area, int areano, int totmsgs, FILE *fti_file jlr.HighReadMsg = 0; all_unread = 1; } else if (jlr.LastReadMsg == 0 && jlr.HighReadMsg == 0) { - all_unread = 1; + all_unread = 1; } } @@ -180,7 +180,7 @@ int bwave_scan_area(int confr, int area, int areano, int totmsgs, FILE *fti_file totmsgs++; } - if (area_msgs) { + //if (area_msgs) { 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.msghptr = convertl(mixptr); fwrite(&mix, sizeof(MIX_REC), 1, mix_file); - } + //} JAM_CloseMB(jb); free_message_headers(msghs); return totmsgs; @@ -291,9 +291,9 @@ void bwave_create_packet() { lasttot = totmsgs; 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); - if (lasttot == totmsgs) { - continue; - } + //if (lasttot == totmsgs) { + // continue; + //} if (area_count == 0) { areas = (INF_AREA_INFO **)malloc(sizeof(INF_AREA_INFO *)); @@ -708,11 +708,11 @@ void bwave_upload_reply() { return; } - confr = -1; - area = -1; - while (fread(&upl_rec, sizeof(UPL_REC), 1, upl_file)) { // find area + confr = -1; + area = -1; + for (i=0;imail_area_count;j++) { if (strcmp(conf.mail_conferences[i]->mail_areas[j]->qwkname, upl_rec.echotag) == 0) {