aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_vcard.lua2
1 files changed, 1 insertions, 1 deletions
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