Changeset

79:a19ccb8f1ef9

clix.archive: Use --to specify where to direct the query
author Kim Alvefur <zash@zash.se>
date Mon, 25 Jun 2012 23:57:54 +0200
parents 78:bed3cfce7d60
children 80:ae77d9c41f4f
files clix/archive.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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