mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-08-13 22:37:28 +00:00
Fix NNTP IHAVE missing message ID (#24)
Co-authored-by: lazyGPT07 <lazyGPT07@users.noreply.github.com>
This commit is contained in:
parent
36c6e0e275
commit
c480e62f39
2 changed files with 47 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue