Changeset

305:4a0206505b9d

plugins.archive: Don't modify the query params table
author Kim Alvefur <zash@zash.se>
date Mon, 25 Jun 2012 02:27:43 +0200
parents 304:e09ae2395d41
children 306:c6183b218f77
files plugins/archive.lua
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)