aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_private.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_private.lua')
-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