mod_vcard: Fixed to use new util.stanza.add_child

This commit is contained in:
Waqas Hussain 2008-10-26 21:21:38 +05:00
parent cc17cb001a
commit 0e5389054a

View file

@ -24,9 +24,7 @@ add_iq_handler("c2s", "vcard-temp",
vCard = st.deserialize(datamanager.load(session.username, session.host, "vCard"));-- load user's own vCard
end
if vCard then
local iq = st.reply(stanza);
iq:add_child(vCard);
send(session, iq); -- send vCard!
send(session, st.reply(stanza):add_child(vCard)); -- send vCard!
else
send(session, st.error_reply(stanza, "cancel", "item-not-found"));
end