Fix default page number in list command
This commit is contained in:
parent
ba4aaa8f52
commit
abffc0b54c
@ -578,7 +578,7 @@ func (handler *CommandHandler) CommandList(ce *CommandEvent) {
|
|||||||
ce.Reply("**Usage:** `list <contacts|groups> [page] [items per page]`")
|
ce.Reply("**Usage:** `list <contacts|groups> [page] [items per page]`")
|
||||||
}
|
}
|
||||||
var err error
|
var err error
|
||||||
page := 0
|
page := 1
|
||||||
max := 100
|
max := 100
|
||||||
if len(ce.Args) > 1 {
|
if len(ce.Args) > 1 {
|
||||||
page, err = strconv.Atoi(ce.Args[1])
|
page, err = strconv.Atoi(ce.Args[1])
|
||||||
|
Loading…
Reference in New Issue
Block a user