Software /
code /
prosody
Comparison
plugins/mod_vcard.lua @ 2003:b7429073f73f
mod_vcard: Removed stream feature.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 18 Oct 2009 07:33:24 +0500 |
parent | 2002:fa71261d8a15 |
child | 2004:5033348feba8 |
comparison
equal
deleted
inserted
replaced
2002:fa71261d8a15 | 2003:b7429073f73f |
---|---|
60 if stanza.attr.type == "get" or stanza.attr.type == "set" and payload.name == "vCard" and payload.attr.xmlns == xmlns_vcard then | 60 if stanza.attr.type == "get" or stanza.attr.type == "set" and payload.name == "vCard" and payload.attr.xmlns == xmlns_vcard then |
61 return handle_vcard(data); | 61 return handle_vcard(data); |
62 end | 62 end |
63 end, 1); | 63 end, 1); |
64 end | 64 end |
65 | |
66 local feature_vcard = st.stanza("feature", { var = xmlns_vcard }); | |
67 module:add_event_hook("stream-features", function(session, features) | |
68 if session.type == "c2s" then | |
69 features:add_child(feature_vcard); | |
70 end | |
71 end); |