Merge branch 'master' of ssh://github.com/majestrate/nntpchan
This commit is contained in:
commit
95448d82f0
@ -759,7 +759,11 @@ func (self *nntpConnection) handleLine(daemon *NNTPDaemon, code int, line string
|
||||
}
|
||||
}
|
||||
}
|
||||
if ValidMessageID(msgid) && daemon.store.HasArticle(msgid) {
|
||||
if ValidMessageID(msgid) {
|
||||
if daemon.database.ArticleBanned(msgid) {
|
||||
// article banned
|
||||
conn.PrintfLine("439 %s article banned from server", msgid)
|
||||
} else if daemon.store.HasArticle(msgid) {
|
||||
// we have it yeh
|
||||
f, err := daemon.store.OpenMessage(msgid)
|
||||
if err == nil {
|
||||
@ -772,6 +776,7 @@ func (self *nntpConnection) handleLine(daemon *NNTPDaemon, code int, line string
|
||||
// wtf?!
|
||||
conn.PrintfLine("503 idkwtf happened: %s", err.Error())
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// we dont got it
|
||||
conn.PrintfLine("430 %s", msgid)
|
||||
|
Reference in New Issue
Block a user