plugins.archive: Don't modify the query params table

Mon, 25 Jun 2012 02:27:43 +0200

author
Kim Alvefur <zash@zash.se>
date
Mon, 25 Jun 2012 02:27:43 +0200
changeset 305
4a0206505b9d
parent 304
e09ae2395d41
child 306
c6183b218f77

plugins.archive: Don't modify the query params table

plugins/archive.lua file | annotate | diff | comparison | revisions
--- a/plugins/archive.lua	Fri Jun 08 21:39:01 2012 +0200
+++ b/plugins/archive.lua	Mon Jun 25 02:27:43 2012 +0200
@@ -32,11 +32,8 @@
 		if qend then
 			query_st:tag("end"):text(datetime(qend)):up();
 		end
-		query_params["start"], query_params["end"], query_params["with"] = nil, nil, nil;
 
-		if next(query_params) then
-			query_st:add_child(rsm.generate(query_params));
-		end
+		query_st:add_child(rsm.generate(query_params));
 
 		local results = {};
 		local function handle_archived_message(message)

mercurial