aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-08-13 19:19:34 +0200
committerKim Alvefur <zash@zash.se>2014-08-13 19:19:34 +0200
commit44a989459cd0943b099df727214fc04a0f87d3b3 (patch)
treed52caec211828eb94af02e1a89880a1b192d3791 /plugins
parent7315c5156d8fada5ee2c504b72f94f1262ed74d1 (diff)
downloadprosody-44a989459cd0943b099df727214fc04a0f87d3b3.tar.gz
prosody-44a989459cd0943b099df727214fc04a0f87d3b3.zip
mod_private: Fix traceback due to missing table index
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_private.lua2
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