# HG changeset patch # User Matthew Wild # Date 1260364790 0 # Node ID 1e27e0092f19db3708ea32facd7a927a4db7d983 # Parent 4b05fd561cbdbb44cffe6d2a9d12fb9e132905b6 mod_vcard: Stricter matching of vcard stanzas with vcard_compatibility enabled, fixes intercepting stanzas to the full JID that it shouldn't diff -r 4b05fd561cbd -r 1e27e0092f19 plugins/mod_vcard.lua --- a/plugins/mod_vcard.lua Wed Dec 09 16:25:18 2009 +0500 +++ b/plugins/mod_vcard.lua Wed Dec 09 13:19:50 2009 +0000 @@ -51,7 +51,7 @@ 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);