Software /
code /
prosody
Diff
plugins/mod_private.lua @ 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 |
parent | 6341:ab9a1af80632 |
child | 6354:bbb4a82db32e |
child | 6841:be87ab2d611c |
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