# HG changeset patch # User Emmanuel Gil Peyrot # Date 1535135766 -7200 # Node ID e2e2aa76ea3174ad7a42f5779ff6bc84dd62d330 # Parent c0e058633d9af9dc3aa8eafd460e92ffe422e713 mod_private, mod_vcard: Use the usual comment on non-get received iqs. diff -r c0e058633d9a -r e2e2aa76ea31 plugins/mod_private.lua --- a/plugins/mod_private.lua Fri Aug 24 20:35:33 2018 +0200 +++ b/plugins/mod_private.lua Fri Aug 24 20:36:06 2018 +0200 @@ -32,7 +32,7 @@ origin.send(st.reply(stanza):add_child(query)); end return true; - else -- type == set + else -- stanza.attr.type == "set" local data; if #tag ~= 0 then data = st.preserialize(tag); diff -r c0e058633d9a -r e2e2aa76ea31 plugins/mod_vcard.lua --- a/plugins/mod_vcard.lua Fri Aug 24 20:35:33 2018 +0200 +++ b/plugins/mod_vcard.lua Fri Aug 24 20:36:06 2018 +0200 @@ -29,7 +29,7 @@ else session.send(st.error_reply(stanza, "cancel", "item-not-found")); end - else + else -- stanza.attr.type == "set" if not to then if vcards:set(session.username, st.preserialize(stanza.tags[1])) then session.send(st.reply(stanza));