Comparison

plugins/archive.lua @ 462:51c3da615ff4

archive: Add 'complete' flag
author Matthew Wild <mwild1@gmail.com>
date Thu, 16 Mar 2023 11:47:37 +0000
parent 457:73d4eb93657b
child 490:6b2f31da9610
comparison
equal deleted inserted replaced
461:fa5c40e5e079 462:51c3da615ff4
62 callback(false, reply:get_error()) 62 callback(false, reply:get_error())
63 return true; 63 return true;
64 end 64 end
65 local finished = reply:get_child("fin", xmlns_mam) 65 local finished = reply:get_child("fin", xmlns_mam)
66 if finished then 66 if finished then
67 results.complete = finished.attr.complete == "true" or finished.attr.complete == "1";
67 local rset = rsm.get(finished); 68 local rset = rsm.get(finished);
68 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
69 end 70 end
70 callback(results); 71 callback(results);
71 return true 72 return true