Software /
code /
verse
Comparison
plugins/archive.lua @ 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 |
parent | 304:e09ae2395d41 |
child | 345:266a96ae4c0d |
comparison
equal
deleted
inserted
replaced
304:e09ae2395d41 | 305:4a0206505b9d |
---|---|
30 query_st:tag("start"):text(datetime(qstart)):up(); | 30 query_st:tag("start"):text(datetime(qstart)):up(); |
31 end | 31 end |
32 if qend then | 32 if qend then |
33 query_st:tag("end"):text(datetime(qend)):up(); | 33 query_st:tag("end"):text(datetime(qend)):up(); |
34 end | 34 end |
35 query_params["start"], query_params["end"], query_params["with"] = nil, nil, nil; | |
36 | 35 |
37 if next(query_params) then | 36 query_st:add_child(rsm.generate(query_params)); |
38 query_st:add_child(rsm.generate(query_params)); | |
39 end | |
40 | 37 |
41 local results = {}; | 38 local results = {}; |
42 local function handle_archived_message(message) | 39 local function handle_archived_message(message) |
43 local result_tag = message:get_child("result", xmlns_mam); | 40 local result_tag = message:get_child("result", xmlns_mam); |
44 if result_tag and result_tag.attr.queryid == queryid then | 41 if result_tag and result_tag.attr.queryid == queryid then |