aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-12-17 19:02:56 +0100
committerKim Alvefur <zash@zash.se>2023-12-17 19:02:56 +0100
commita7799e11a9521d33cc322fa8b9cae99134219089 (patch)
tree354707a547def6cc11f7dfbf69f147d2db318523 /plugins
parent6438e929b2787d3b6319ac54028d3d15e479defd (diff)
parent4ca636bb7ea175908c46b97de1002028fb7a79f7 (diff)
downloadprosody-a7799e11a9521d33cc322fa8b9cae99134219089.tar.gz
prosody-a7799e11a9521d33cc322fa8b9cae99134219089.zip
Merge 0.12->trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_disco.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua
index 540678e2..3517344d 100644
--- a/plugins/mod_disco.lua
+++ b/plugins/mod_disco.lua
@@ -173,6 +173,8 @@ module:hook("iq-get/bare/http://jabber.org/protocol/disco#info:query", function(
if not stanza.attr.to or (expose_admins and target_is_admin) or is_contact_subscribed(username, module.host, jid_bare(stanza.attr.from)) then
if node and node ~= "" then
local reply = st.reply(stanza):tag('query', {xmlns='http://jabber.org/protocol/disco#info', node=node});
+ reply:tag("feature", { var = "http://jabber.org/protocol/disco#info" }):up();
+ reply:tag("feature", { var = "http://jabber.org/protocol/disco#items" }):up();
if not reply.attr.from then reply.attr.from = origin.username.."@"..origin.host; end -- COMPAT To satisfy Psi when querying own account
local node_event = { origin = origin, stanza = stanza, reply = reply, node = node, exists = false};
local ret = module:fire_event("account-disco-info-node", node_event);
@@ -193,6 +195,8 @@ module:hook("iq-get/bare/http://jabber.org/protocol/disco#info:query", function(
else
reply:tag('identity', {category='account', type='registered'}):up();
end
+ reply:tag("feature", { var = "http://jabber.org/protocol/disco#info" }):up();
+ reply:tag("feature", { var = "http://jabber.org/protocol/disco#items" }):up();
module:fire_event("account-disco-info", { origin = origin, reply = reply });
origin.send(reply);
return true;