Software /
code /
prosody
Diff
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 |
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