small getlist patch

Matus "fantomas" Uhlar uhlar at fantomas.sk
Wed Mar 29 10:37:33 UTC 2000


Hello,

following patch (2.2.2) allows getlist to use pattern also with newsgroup
listing.

I'd like such patch into nnrpd too, using
 list active <pattern> 
or
 list newsgroups pattern

could list only that pattern - nntpcache and Typhoon support that.

--- getlist.c.orig	Thu May 21 05:00:16 1998
+++ getlist.c	Wed Mar 29 12:30:23 2000
@@ -96,7 +96,11 @@
 	list = "active";
     else {
 	list = av[0];
-	if (!EQ(list, "active") && pattern != NULL)
+	if (
+	  ((types != NULL) && !EQ(list, "active"))
+	    ||
+	  ((pattern != NULL) && !(EQ(list, "active") || EQ(list, "newsgroups"))
+	)
 	    Usage();
     }

-- 
 Matus "fantomas" Uhlar, sysadmin at NEXTRA, Slovakia; IRCNET admin of *.sk
 uhlar at fantomas.sk ; http://www.fantomas.sk/ ; http://www.nextra.sk/
 Due to unexpected conditions Windows 2000 will be released
 in first quarter of year 1901



More information about the inn-patches mailing list