Archived
1
0

fix previous commit

This commit is contained in:
Jeff Becker 2017-09-24 10:18:31 -04:00
parent ab37624a7a
commit b634fa2665
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -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()