diff options
author | Kim Alvefur <zash@zash.se> | 2014-08-13 19:19:34 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-08-13 19:19:34 +0200 |
commit | 76553f0d6fa7bee5cd3478f7c0fedc3719a52505 (patch) | |
tree | d52caec211828eb94af02e1a89880a1b192d3791 | |
parent | 66416f2f48efc8b78773a7fac061eca005c42f60 (diff) | |
download | prosody-76553f0d6fa7bee5cd3478f7c0fedc3719a52505.tar.gz prosody-76553f0d6fa7bee5cd3478f7c0fedc3719a52505.zip |
mod_private: Fix traceback due to missing table index
-rw-r--r-- | plugins/mod_private.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_private.lua b/plugins/mod_private.lua index 872d3760..8bca5154 100644 --- a/plugins/mod_private.lua +++ b/plugins/mod_private.lua @@ -27,7 +27,7 @@ module:hook("iq/self/jabber:iq:private:query", function(event) 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 |