Archived
1
0

commit which fixes invalid line shit

This commit is contained in:
Jeff Becker 2018-01-04 15:43:55 -05:00
parent 0266deee2b
commit 37e6129261
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -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)
//}