diff options
author | Tobias Markmann <tm@ayena.de> | 2008-11-23 20:44:48 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2008-11-23 20:44:48 +0100 |
commit | 560094822d86f10450567785544cfcca61dd8a3b (patch) | |
tree | c2737280276b8ec3642cae5ae644e81da621be04 /plugins/mod_vcard.lua | |
parent | 3bc6fdb526dec6b56dab9208461d5b2f4db08006 (diff) | |
parent | 6db47b60f4574bc8e5a34eacac8a67ccd52107dd (diff) | |
download | prosody-560094822d86f10450567785544cfcca61dd8a3b.tar.gz prosody-560094822d86f10450567785544cfcca61dd8a3b.zip |
Merging with main branch.
Diffstat (limited to 'plugins/mod_vcard.lua')
-rw-r--r-- | plugins/mod_vcard.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_vcard.lua b/plugins/mod_vcard.lua index fb7382c2..d2f2c7ba 100644 --- a/plugins/mod_vcard.lua +++ b/plugins/mod_vcard.lua @@ -43,9 +43,10 @@ add_iq_handler({"c2s", "s2sin"}, "vcard-temp", end end); +local feature_vcard_attr = { var='vcard-temp' }; add_event_hook("stream-features", function (session, features) if session.type == "c2s" then - t_insert(features, "<feature var='vcard-temp'/>"); + features:tag("feature", feature_vcard_attr):up(); end end); |