From df021531cb2eaad6f41685f0c5dbe8b2a1d54d68 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Thu, 4 Jan 2018 15:45:26 -0500 Subject: [PATCH] commit which fixes invalid line shit --- contrib/backends/srndv2/src/srnd/nntp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/backends/srndv2/src/srnd/nntp.go b/contrib/backends/srndv2/src/srnd/nntp.go index e5c0fcf..8ec01a2 100644 --- a/contrib/backends/srndv2/src/srnd/nntp.go +++ b/contrib/backends/srndv2/src/srnd/nntp.go @@ -863,7 +863,7 @@ func (self *nntpConnection) handleLine(daemon *NNTPDaemon, code int, line string // XXX: heavy as shit //lo, hi, err := daemon.database.GetLastAndFirstForGroup(group) //if err == nil { - if len(group) > 0 { + if ValidNewsgroup(group) { _, _ = io.WriteString(dw, fmt.Sprintf("%s 0 0 y\n", group)) } //} else {