Fix for scannews
This commit is contained in:
parent
1b9fa1f09b
commit
fad042b480
@ -269,11 +269,12 @@ int do_one_group(List **art, char *grpname, char *ftntag)
|
||||
total = atol(strtok(NULL, " "));
|
||||
start = atol(strtok(NULL, " "));
|
||||
end = atol(strtok(NULL, " '\0'"));
|
||||
Syslog('n', "GROUP total %d, start %d, end %d", total, start, end);
|
||||
if ((msgs.MaxArticles) && (total > msgs.MaxArticles)) {
|
||||
start = end - msgs.MaxArticles;
|
||||
total = msgs.MaxArticles;
|
||||
Syslog('n', "NEW: total %d, start %d, end %d", total, start, end);
|
||||
}
|
||||
Syslog('n', "GROUP total %d, start %d, end %d", total, start, end);
|
||||
if (!total) {
|
||||
Syslog('N', "No articles");
|
||||
return RETVAL_OK;
|
||||
|
Reference in New Issue
Block a user