Fix NNTP IHAVE missing message ID (#24)

Co-authored-by: lazyGPT07 <lazyGPT07@users.noreply.github.com>
This commit is contained in:
lazyGPT07 2026-06-15 02:34:13 -06:00 committed by GitHub
parent 36c6e0e275
commit c480e62f39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 47 additions and 2 deletions

View file

@ -362,6 +362,9 @@ func handleIHave(args []string, s *session, c *textproto.Conn) error {
if !s.backend.AllowPost() {
return ErrNotWanted
}
if len(args) < 1 {
return ErrSyntax
}
article, err := s.backend.GetArticle(nil, args[0])
if article != nil {
return ErrNotWanted