diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-20 01:33:25 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-20 01:33:25 +0000 |
commit | 5c7ec634b1765f8edcc8b59aff2b2b899180dc65 (patch) | |
tree | 07dbd8f7cafdc380476d8e6dd0bc478775809800 /plugins/mod_vcard.lua | |
parent | 6a333d94d6779850451ca74249906ebf53c5f369 (diff) | |
download | prosody-5c7ec634b1765f8edcc8b59aff2b2b899180dc65.tar.gz prosody-5c7ec634b1765f8edcc8b59aff2b2b899180dc65.zip |
Use a stanza for c2s stream features instead of an array of strings. Removes a FIXME.
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); |