Software /
code /
verse
Comparison
plugins/archive.lua @ 412:ef66f302fe97
plugins.archive: Don't require 'queryid' attribute in iq response
Not needed since <fin> moved out of the last <message>
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 31 Mar 2018 15:43:28 +0200 (2018-03-31) |
parent | 409:171c4a8cc3de |
child | 413:41c67bf8c010 |
comparison
equal
deleted
inserted
replaced
411:db462d4feb44 | 412:ef66f302fe97 |
---|---|
62 self:warn(table.concat({reply:get_error()}, " ")) | 62 self:warn(table.concat({reply:get_error()}, " ")) |
63 callback(false, reply:get_error()) | 63 callback(false, reply:get_error()) |
64 return true; | 64 return true; |
65 end | 65 end |
66 local finnished = reply:get_child("fin", xmlns_mam) | 66 local finnished = reply:get_child("fin", xmlns_mam) |
67 if finnished and finnished.attr.queryid == queryid then | 67 if finnished then |
68 local rset = rsm.get(finnished); | 68 local rset = rsm.get(finnished); |
69 for k,v in pairs(rset or NULL) do results[k]=v; end | 69 for k,v in pairs(rset or NULL) do results[k]=v; end |
70 callback(results); | 70 callback(results); |
71 return true | 71 return true |
72 end | 72 end |