Software /
code /
prosody
Diff
plugins/mod_vcard.lua @ 357:17bcecb06420
Use a stanza for c2s stream features instead of an array of strings. Removes a FIXME.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 20 Nov 2008 01:33:25 +0000 |
parent | 307:8ff052a77cac |
child | 421:63be85693710 |
line wrap: on
line diff
--- a/plugins/mod_vcard.lua Thu Nov 20 01:32:24 2008 +0000 +++ b/plugins/mod_vcard.lua Thu Nov 20 01:33:25 2008 +0000 @@ -43,9 +43,10 @@ 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);