aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_vcard.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-12-09 13:19:50 +0000
committerMatthew Wild <mwild1@gmail.com>2009-12-09 13:19:50 +0000
commitcb288b82ad4d9693cdb94e23fbaa96b722e952f5 (patch)
tree5560b2dfd1a49f278560e41c30e91a6c5842cf8e /plugins/mod_vcard.lua
parentd37732ee69d48ae1582e195d6d6bcc4609d3e596 (diff)
downloadprosody-cb288b82ad4d9693cdb94e23fbaa96b722e952f5.tar.gz
prosody-cb288b82ad4d9693cdb94e23fbaa96b722e952f5.zip
mod_vcard: Stricter matching of vcard stanzas with vcard_compatibility enabled, fixes intercepting stanzas to the full JID that it shouldn't
Diffstat (limited to 'plugins/mod_vcard.lua')
-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 0efc1638..6bf82ee7 100644
--- a/plugins/mod_vcard.lua
+++ b/plugins/mod_vcard.lua
@@ -51,7 +51,7 @@ if module:get_option("vcard_compatibility") then
module:hook("iq/full", function(data)
local stanza = data.stanza;
local payload = stanza.tags[1];
- if stanza.attr.type == "get" or stanza.attr.type == "set" and payload.name == "vCard" and payload.attr.xmlns == "vcard-temp" then
+ if stanza.attr.type == "get" and payload.name == "vCard" and payload.attr.xmlns == "vcard-temp" then
return handle_vcard(data);
end
end, 1);