Archived
1
0

commit which fixes invalid line shit

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

View File

@ -863,7 +863,7 @@ func (self *nntpConnection) handleLine(daemon *NNTPDaemon, code int, line string
// XXX: heavy as shit // XXX: heavy as shit
//lo, hi, err := daemon.database.GetLastAndFirstForGroup(group) //lo, hi, err := daemon.database.GetLastAndFirstForGroup(group)
//if err == nil { //if err == nil {
if len(group) > 0 { if ValidNewsgroup(group) {
_, _ = io.WriteString(dw, fmt.Sprintf("%s 0 0 y\n", group)) _, _ = io.WriteString(dw, fmt.Sprintf("%s 0 0 y\n", group))
} }
//} else { //} else {