Archived
1
0
This commit is contained in:
Jeff Becker 2019-04-04 07:25:38 -04:00
parent 43ce4490ed
commit 558dacac79
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -718,7 +718,7 @@ func (self *nntpConnection) handleLine(daemon *NNTPDaemon, code int, line string
if len(reason) > 0 { if len(reason) > 0 {
// discard, we do not want // discard, we do not want
log.Println(self.name, "rejected", msgid, reason) log.Println(self.name, "rejected", msgid, reason)
conn.PrintfLine("439 %s %s", code, msgid, reason) conn.PrintfLine("439 %s %s", msgid, reason)
_, err = io.Copy(ioutil.Discard, msg.Body) _, err = io.Copy(ioutil.Discard, msg.Body)
if ban { if ban {
err = daemon.database.BanArticle(msgid, reason) err = daemon.database.BanArticle(msgid, reason)