Software /
code /
clix
Changeset
161:64cb732f67e4
clix.archive: Fix MAM callback argument order
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 06 Nov 2021 22:11:19 +0100 |
parents | 160:6c1953fbe0fa |
children | 162:28acd1ca0ffd |
files | clix/archive.lua |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/clix/archive.lua Sat Nov 06 18:12:22 2021 +0100 +++ b/clix/archive.lua Sat Nov 06 22:11:19 2021 +0100 @@ -75,7 +75,11 @@ conn:hook("stanza", print); end selfjid = bare_jid(conn.jid); - local function handle_results(ok, result) + local function handle_results(result, err) + if not result then + conn:close(); + return; + end for i=1,#result do print_message(result[i]); end @@ -99,7 +103,7 @@ nextpage = result.first and result.first[1]; else nextpage = result.last; - end + end conn:info("Next page: --%s=%s", whatnext, nextpage); end end