Software /
code /
prosody
Comparison
plugins/mod_vcard.lua @ 1957:5856b2dcf81e
mod_vcard: Hide me from the trailing-whitespace police
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 16 Oct 2009 00:11:55 +0100 |
parent | 1956:ec04b571fa86 |
child | 2000:c31aa53348b8 |
comparison
equal
deleted
inserted
replaced
1956:ec04b571fa86 | 1957:5856b2dcf81e |
---|---|
59 | 59 |
60 -- COMPAT: https://support.process-one.net/browse/EJAB-1045 | 60 -- COMPAT: https://support.process-one.net/browse/EJAB-1045 |
61 if module:get_option("vcard_compatibility") then | 61 if module:get_option("vcard_compatibility") then |
62 module:hook("iq/full", function (data) | 62 module:hook("iq/full", function (data) |
63 local stanza = data.stanza; | 63 local stanza = data.stanza; |
64 if stanza.attr.type == "get" and stanza.tags[1] | 64 if stanza.attr.type == "get" and stanza.tags[1] |
65 and stanza.tags[1].attr.xmlns == xmlns_vcard then | 65 and stanza.tags[1].attr.xmlns == xmlns_vcard then |
66 return handle_vcard(data.origin, stanza); | 66 return handle_vcard(data.origin, stanza); |
67 end | 67 end |
68 end, 1); | 68 end, 1); |
69 end | 69 end |