# HG changeset patch # User Kim Alvefur # Date 1407950374 -7200 # Node ID a868d5d6a83f2b5883c94905508939f89c745754 # Parent b703e6930e4ce08f73690c359dd7174e92aa8562 mod_private: Fix traceback due to missing table index diff -r b703e6930e4c -r a868d5d6a83f plugins/mod_private.lua --- 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