# HG changeset patch # User Matthew Wild # Date 1255648315 -3600 # Node ID 5856b2dcf81e91a6758c45634f899529091e4057 # Parent ec04b571fa863e52f7cad668a1bae21d9f98e0c6 mod_vcard: Hide me from the trailing-whitespace police diff -r ec04b571fa86 -r 5856b2dcf81e plugins/mod_vcard.lua --- 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