# HG changeset patch # User Kim Alvefur # Date 1340661474 -7200 # Node ID a19ccb8f1ef9656eefc773d1f45ad27c6f6ed53c # Parent bed3cfce7d60882de2169c0354ad7b75cdff9e8b clix.archive: Use --to specify where to direct the query diff -r bed3cfce7d60 -r a19ccb8f1ef9 clix/archive.lua --- a/clix/archive.lua Mon Jun 25 16:24:59 2012 +0200 +++ b/clix/archive.lua Mon Jun 25 23:57:54 2012 +0200 @@ -40,7 +40,7 @@ io.stderr:write "--More--" if io.read"*l" then opts.after = result.last; - conn:query_archive(nil, opts, handle_results); + conn:query_archive(opts.to, opts, handle_results); return end end @@ -49,7 +49,7 @@ conn:add_plugin"archive"; -- TODO conn:add_plugin"roster"; -- c.roster:fetch(function() - conn:query_archive(nil, opts, handle_results); + conn:query_archive(opts.to, opts, handle_results); end clix_connect(opts, on_connect); end