Make all newsgroups temporary anonymous

This commit is contained in:
ChronosX88 2022-04-14 20:38:51 +03:00
parent 3bedb48945
commit 75df0d6bdf
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A
2 changed files with 3 additions and 3 deletions

View File

@ -116,9 +116,9 @@ func (h *Handler) handleList(s *Session, command string, arguments []string, id
if err != nil {
return err
}
dw.Write([]byte(fmt.Sprintf("%s %d %d n"+protocol.CRLF, v.GroupName, highWaterMark, lowWaterMark)))
dw.Write([]byte(fmt.Sprintf("%s %d %d y"+protocol.CRLF, v.GroupName, highWaterMark, lowWaterMark)))
} else {
dw.Write([]byte(fmt.Sprintf("%s 0 1 n"+protocol.CRLF, v.GroupName)))
dw.Write([]byte(fmt.Sprintf("%s 0 1 y"+protocol.CRLF, v.GroupName)))
}
}
return dw.Close()

View File

@ -75,7 +75,7 @@ func (s *Session) loop() {
close(s.closed)
}()
err := s.tconn.PrintfLine(protocol.NNTPResponse{Code: 201, Message: "YANS NNTP Service Ready, posting prohibited"}.String()) // by default access mode is read-only
err := s.tconn.PrintfLine(protocol.NNTPResponse{Code: 201, Message: "YANS NNTP Service Ready, posting allowed"}.String()) // by default access mode is read-only
if err != nil {
s.conn.Close()
return