aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-01 22:06:25 +0200
committerKim Alvefur <zash@zash.se>2018-09-01 22:06:25 +0200
commit7e0d897777ebe69921ec9e4d1172dea2c6a86688 (patch)
treebcb4617cbbc2384a757dbf5a50971cbd22e9a476
parent3d17f4e04ca3fa32cf74ca2fd49f1723cfdd2b16 (diff)
downloadprosody-7e0d897777ebe69921ec9e4d1172dea2c6a86688.tar.gz
prosody-7e0d897777ebe69921ec9e4d1172dea2c6a86688.zip
mod_vcard_legacy: Announce feature on bare JID per XEP
-rw-r--r--CHANGES2
-rw-r--r--plugins/mod_vcard_legacy.lua4
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index e624b34b..32b3baee 100644
--- a/CHANGES
+++ b/CHANGES
@@ -20,7 +20,7 @@ New features
- Asynchronous operations
- Busted for tests
- mod\_muc\_mam (XEP-0313 in groupchats)
-- mod\_vcard\_legacy
+- mod\_vcard\_legacy (XEP-0398)
0.10.0
======
diff --git a/plugins/mod_vcard_legacy.lua b/plugins/mod_vcard_legacy.lua
index 51d84dc3..e348b84f 100644
--- a/plugins/mod_vcard_legacy.lua
+++ b/plugins/mod_vcard_legacy.lua
@@ -9,7 +9,9 @@ local base64_decode = require "util.encodings".base64.decode;
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>