38 end |
38 end |
39 if result.last then |
39 if result.last then |
40 io.stderr:write "--More--" |
40 io.stderr:write "--More--" |
41 if io.read"*l" then |
41 if io.read"*l" then |
42 opts.after = result.last; |
42 opts.after = result.last; |
43 conn:query_archive(nil, opts, handle_results); |
43 conn:query_archive(opts.to, opts, handle_results); |
44 return |
44 return |
45 end |
45 end |
46 end |
46 end |
47 conn:close(); |
47 conn:close(); |
48 end |
48 end |
49 conn:add_plugin"archive"; |
49 conn:add_plugin"archive"; |
50 -- TODO conn:add_plugin"roster"; |
50 -- TODO conn:add_plugin"roster"; |
51 -- c.roster:fetch(function() |
51 -- c.roster:fetch(function() |
52 conn:query_archive(nil, opts, handle_results); |
52 conn:query_archive(opts.to, opts, handle_results); |
53 end |
53 end |
54 clix_connect(opts, on_connect); |
54 clix_connect(opts, on_connect); |
55 end |
55 end |