aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-10-26 21:21:38 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-10-26 21:21:38 +0500
commit0e5389054a902fdd3726d1dc838c2f31a15d4eba (patch)
tree2f1316e02753889365c1224c64d9ccab8beb27cc
parentcc17cb001af95b8239a7857d2bed9e9b96a5a3c7 (diff)
downloadprosody-0e5389054a902fdd3726d1dc838c2f31a15d4eba.tar.gz
prosody-0e5389054a902fdd3726d1dc838c2f31a15d4eba.zip
mod_vcard: Fixed to use new util.stanza.add_child
-rw-r--r--plugins/mod_vcard.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/mod_vcard.lua b/plugins/mod_vcard.lua
index a2296132..78d35fda 100644
--- a/plugins/mod_vcard.lua
+++ b/plugins/mod_vcard.lua
@@ -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