Fri, 16 Oct 2009 00:11:55 +0100
mod_vcard: Hide me from the trailing-whitespace police
plugins/mod_vcard.lua | file | annotate | diff | comparison | revisions |
--- 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