From b634fa26657b3bf533e0cb42cbca2d7903c605f2 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sun, 24 Sep 2017 10:18:31 -0400 Subject: [PATCH] fix previous commit --- contrib/backends/srndv2/src/srnd/nntp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/backends/srndv2/src/srnd/nntp.go b/contrib/backends/srndv2/src/srnd/nntp.go index 4d2e559..d2b8d0d 100644 --- a/contrib/backends/srndv2/src/srnd/nntp.go +++ b/contrib/backends/srndv2/src/srnd/nntp.go @@ -1365,8 +1365,8 @@ func (self *nntpConnection) scrapeServer(daemon *NNTPDaemon, conn *textproto.Con err = conn.PrintfLine("LIST NEWSGROUPS") if err == nil { // read response line - code, _, err := conn.ReadCodeLine(231) - if code == 231 { + code, _, err := conn.ReadCodeLine(0) + if code == 231 || code == 215 { var groups []string // valid response, we expect a multiline dr := conn.DotReader()