Changeset

9228:e2e2aa76ea31

mod_private, mod_vcard: Use the usual comment on non-get received iqs.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 24 Aug 2018 20:36:06 +0200
parents 9227:c0e058633d9a
children 9229:1338b84c0566
files plugins/mod_private.lua plugins/mod_vcard.lua
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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));