Software /
code /
prosody
Changeset
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 |
parents | 1956:ec04b571fa86 |
children | 1958:e2b0026143c4 |
files | plugins/mod_vcard.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_vcard.lua Thu Oct 15 23:21:55 2009 +0100 +++ b/plugins/mod_vcard.lua Fri Oct 16 00:11:55 2009 +0100 @@ -61,7 +61,7 @@ if module:get_option("vcard_compatibility") then module:hook("iq/full", function (data) local stanza = data.stanza; - if stanza.attr.type == "get" and stanza.tags[1] + if stanza.attr.type == "get" and stanza.tags[1] and stanza.tags[1].attr.xmlns == xmlns_vcard then return handle_vcard(data.origin, stanza); end