From 87c959a993e23b9d21f15a273bbd4f3808949ab9 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 27 May 1997 19:35:17 +0000 Subject: [PATCH] Fix bug: news server can return #(0 0 0) as server-info for a news group, indicating that there are no articles on the server. News reader was expecting the last two numbers to be article numbers, but zero is not a valid article number. --- v7/src/edwin/snr.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v7/src/edwin/snr.scm b/v7/src/edwin/snr.scm index 1c6bceb40..dbfa5bd3a 100644 --- a/v7/src/edwin/snr.scm +++ b/v7/src/edwin/snr.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: snr.scm,v 1.33 1997/05/27 07:30:31 cph Exp $ +;;; $Id: snr.scm,v 1.34 1997/05/27 19:35:17 cph Exp $ ;;; ;;; Copyright (c) 1995-97 Massachusetts Institute of Technology ;;; @@ -4082,7 +4082,8 @@ With prefix arg, replaces the file with the list information." (define (news-group:number-of-articles group) (let ((estimate (news-group:estimated-n-articles group))) (and estimate - (if (news-group:reader-hook group) + (if (and (news-group:reader-hook group) + (news-group:server-has-articles? group)) (let ((n-seen (count-ranges (news-group:guarantee-ranges-deleted group)))) -- 2.25.1