Software /
code /
prosody
Diff
plugins/mod_vcard_legacy.lua @ 9260:0fc6ffc57dc0
mod_vcard_legacy: Announce feature on bare JID per XEP
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 01 Sep 2018 22:06:25 +0200 |
parent | 9259:926a88dd5c54 |
child | 9267:37e2cace1f2a |
line wrap: on
line diff
--- 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 -- <foo><text>hey</text></foo> -> <FOO>hey</FOO>