Software /
code /
prosody
Changeset
6353:a868d5d6a83f
mod_private: Fix traceback due to missing table index
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 13 Aug 2014 19:19:34 +0200 |
parents | 6352:b703e6930e4c |
children | 6354:bbb4a82db32e 6355:c2d144d3f8dd |
files | plugins/mod_private.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_private.lua Tue Aug 12 15:42:20 2014 +0200 +++ b/plugins/mod_private.lua Wed Aug 13 19:19:34 2014 +0200 @@ -27,7 +27,7 @@ end if stanza.attr.type == "get" then if data and data[key] then - return origin.send(st.reply(stanza):query("jabber:iq:private"):add_child(st.deserialize(data))); + return origin.send(st.reply(stanza):query("jabber:iq:private"):add_child(st.deserialize(data[key]))); else return origin.send(st.reply(stanza):add_child(query)); end