# HG changeset patch # User Kim Alvefur # Date 1535832385 -7200 # Node ID 0fc6ffc57dc04a04aef363692387dae1bf15ecd3 # Parent 926a88dd5c5437a959417520d77227050888d1e4 mod_vcard_legacy: Announce feature on bare JID per XEP diff -r 926a88dd5c54 -r 0fc6ffc57dc0 CHANGES --- a/CHANGES Sat Sep 01 18:10:33 2018 +0200 +++ b/CHANGES Sat Sep 01 22:06:25 2018 +0200 @@ -20,7 +20,7 @@ - Asynchronous operations - Busted for tests - mod\_muc\_mam (XEP-0313 in groupchats) -- mod\_vcard\_legacy +- mod\_vcard\_legacy (XEP-0398) 0.10.0 ====== diff -r 926a88dd5c54 -r 0fc6ffc57dc0 plugins/mod_vcard_legacy.lua --- a/plugins/mod_vcard_legacy.lua Sat Sep 01 18:10:33 2018 +0200 +++ b/plugins/mod_vcard_legacy.lua Sat Sep 01 22:06:25 2018 +0200 @@ -9,7 +9,9 @@ local vcards = module:open_store("vcard"); module:add_feature("vcard-temp"); -module:add_feature("urn:xmpp:pep-vcard-conversion:0"); +module:hook("account-disco-info", function (event) + event.reply:tag("feature", { var = "urn:xmpp:pep-vcard-conversion:0" }):up(); +end); -- Simple translations -- hey -> hey