# HG changeset patch # User Kim Alvefur # Date 1334887818 -7200 # Node ID 78ddfd30c74e04b9abd742df5c87e0db15ae3535 # Parent 5f7203bf1daeb4d04c9d6f89fb32c9dca5b3aba2 plugins.archive: Collect the archive id diff -r 5f7203bf1dae -r 78ddfd30c74e plugins/archive.lua --- a/plugins/archive.lua Fri Apr 20 01:39:31 2012 +0200 +++ b/plugins/archive.lua Fri Apr 20 04:10:18 2012 +0200 @@ -30,12 +30,13 @@ if result_tag and result_tag.attr.queryid == queryid then local forwarded = message:get_child("forwarded", xmlns_forward); + local id = result_tag.attr.id; local delay = forwarded:get_child("delay", xmlns_delay); local stamp = delay and delay.attr.stamp or nil; local message = forwarded:get_child("message", "jabber:client") - results[#results+1] = { stamp = stamp, message = message }; + results[#results+1] = { id = id, stamp = stamp, message = message }; return true end end