plugins/mod_vcard.lua
changeset 9231 e2e2aa76ea31
parent 9222 3ce18a4018f4
child 10556 f1cf8c08a09d
--- 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));