From 2139dc47e4a3acaea463fc799ca83b7e39fd517a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 16 Oct 2009 00:11:55 +0100 Subject: mod_vcard: Hide me from the trailing-whitespace police --- plugins/mod_vcard.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_vcard.lua b/plugins/mod_vcard.lua index 9ab84ba8..e2016c97 100644 --- a/plugins/mod_vcard.lua +++ b/plugins/mod_vcard.lua @@ -61,7 +61,7 @@ module:add_iq_handler({"c2s", "s2sin", "component"}, xmlns_vcard, handle_vcard); 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 -- cgit v1.2.3