From 91e758c8340b7b28904612895236bfb161d87dd6 Mon Sep 17 00:00:00 2001 From: cathugger Date: Sun, 25 Nov 2018 20:01:33 +0200 Subject: [PATCH] fix ARTICLE not returning any error Yes, I'm aware it sometimes may still return wrong code. --- contrib/backends/srndv2/src/srnd/nntp.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/backends/srndv2/src/srnd/nntp.go b/contrib/backends/srndv2/src/srnd/nntp.go index 87994c9..0d9327d 100644 --- a/contrib/backends/srndv2/src/srnd/nntp.go +++ b/contrib/backends/srndv2/src/srnd/nntp.go @@ -776,10 +776,13 @@ func (self *nntpConnection) handleLine(daemon *NNTPDaemon, code int, line string // wtf?! conn.PrintfLine("503 idkwtf happened: %s", err.Error()) } + } else { + // we dont got it (by msgid) + conn.PrintfLine("430 %s", msgid) } } else { - // we dont got it - conn.PrintfLine("430 %s", msgid) + // we dont got it (by num) + conn.PrintfLine("423 %s", msgid) } } else if cmd == "IHAVE" { if !self.authenticated {