Software /
code /
verse
Diff
plugins/archive.lua @ 296:78ddfd30c74e
plugins.archive: Collect the archive id
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 20 Apr 2012 04:10:18 +0200 |
parent | 295:5f7203bf1dae |
child | 297:447dffdaf46c |
line wrap: on
line diff
--- 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