Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nntp.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (c *Conn) Date() (time.Time, error) {
// List(keyword) - return different kinds of information about groups
// List(keyword, pattern) - filter groups against a glob-like pattern called a wildmat
//
func (c *Conn) List(a ...string) ([]string, error) {
func (c *Conn) List(a ...string) ([]*Group, error) {
if len(a) > 2 {
return nil, ProtocolError("List only takes up to 2 arguments")
}
Expand All @@ -492,7 +492,7 @@ func (c *Conn) List(a ...string) ([]string, error) {
if _, _, err := c.cmd(215, cmd); err != nil {
return nil, err
}
return c.readStrings()
return c.readGroups()
}

// Group changes the current group.
Expand Down