From 2dc6f58f0dee1a2e5eaaeecf1637a883225e0cd7 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 24 Aug 2018 20:36:06 +0200 Subject: mod_private, mod_vcard: Use the usual comment on non-get received iqs. --- plugins/mod_private.lua | 2 +- plugins/mod_vcard.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mod_private.lua b/plugins/mod_private.lua index 9375cf80..6046d490 100644 --- a/plugins/mod_private.lua +++ b/plugins/mod_private.lua @@ -32,7 +32,7 @@ module:hook("iq/self/jabber:iq:private:query", function(event) 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 --git a/plugins/mod_vcard.lua b/plugins/mod_vcard.lua index bda039a3..b1a4c6e8 100644 --- a/plugins/mod_vcard.lua +++ b/plugins/mod_vcard.lua @@ -29,7 +29,7 @@ local function handle_vcard(event) 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)); -- cgit v1.2.3