Skip to content
Snippets Groups Projects
Commit ce445f26 authored by rswindell's avatar rswindell
Browse files

Max QWK message limit now applies to Q-restricted accounts too.

Reduce the frequency of time-slice yields (to ever 50 messages) during packing.
parent 65a7576e
No related branches found
No related tags found
No related merge requests found
...@@ -410,11 +410,12 @@ bool sbbs_t::pack_qwk(char *packet, ulong *msgcnt, bool prepack) ...@@ -410,11 +410,12 @@ bool sbbs_t::pack_qwk(char *packet, ulong *msgcnt, bool prepack)
(*msgcnt)++; (*msgcnt)++;
submsgs++; submsgs++;
if(cfg.max_qwkmsgs if(cfg.max_qwkmsgs
&& !(useron.rest&FLAG('Q')) && (*msgcnt)>=cfg.max_qwkmsgs) { /* && !(useron.rest&FLAG('Q')) */ && (*msgcnt)>=cfg.max_qwkmsgs) {
bputs(text[QWKmsgLimitReached]); bputs(text[QWKmsgLimitReached]);
break; break;
} }
mswait(1); /* yield */ if(!(l%50))
mswait(1); /* yield */
} }
if(!(sys_status&SS_ABORT)) if(!(sys_status&SS_ABORT))
bprintf(text[QWKPackedSubboard],submsgs,(*msgcnt)); bprintf(text[QWKPackedSubboard],submsgs,(*msgcnt));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment