From 37e61292614a95cd1abe45191ded0da9993fc6c1 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Thu, 4 Jan 2018 15:43:55 -0500 Subject: [PATCH] commit which fixes invalid line shit --- contrib/backends/srndv2/src/srnd/nntp.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/backends/srndv2/src/srnd/nntp.go b/contrib/backends/srndv2/src/srnd/nntp.go index 58f7750..e5c0fcf 100644 --- a/contrib/backends/srndv2/src/srnd/nntp.go +++ b/contrib/backends/srndv2/src/srnd/nntp.go @@ -863,7 +863,9 @@ func (self *nntpConnection) handleLine(daemon *NNTPDaemon, code int, line string // XXX: heavy as shit //lo, hi, err := daemon.database.GetLastAndFirstForGroup(group) //if err == nil { - _, _ = io.WriteString(dw, fmt.Sprintf("%s 0 0 y\n", group)) + if len(group) > 0 { + _, _ = io.WriteString(dw, fmt.Sprintf("%s 0 0 y\n", group)) + } //} else { // log.Println(self.name, "could not get low/high water mark for", group, err) //}