diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-12-09 13:19:50 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-12-09 13:19:50 +0000 |
commit | 220a7eefbd70d08a4122ba8734ddd275e84568e3 (patch) | |
tree | 9e5cc1d9f8695fae874708d896075ee3f88c6021 /plugins | |
parent | 6428065b5edf506fba8305186f95fff8d100a5e6 (diff) | |
download | prosody-220a7eefbd70d08a4122ba8734ddd275e84568e3.tar.gz prosody-220a7eefbd70d08a4122ba8734ddd275e84568e3.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')
-rw-r--r-- | plugins/mod_vcard.lua | 2 |
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); |