aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-07-04 20:10:18 +0200
committerKim Alvefur <zash@zash.se>2020-07-04 20:10:18 +0200
commit657290679d6a8fba16bd6666561daa7cf74a2947 (patch)
treea51e3e1bcef74ed6533f6458d00f98a6042a45f3 /plugins
parent182816c1ae2392ec3a715fc4d6873996f0c73945 (diff)
downloadprosody-657290679d6a8fba16bd6666561daa7cf74a2947.tar.gz
prosody-657290679d6a8fba16bd6666561daa7cf74a2947.zip
mod_disco: Advertise anonymous users
Can these even be seen?
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_disco.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua
index b05629b5..143e5fa3 100644
--- a/plugins/mod_disco.lua
+++ b/plugins/mod_disco.lua
@@ -184,6 +184,8 @@ module:hook("iq-get/bare/http://jabber.org/protocol/disco#info:query", function(
if not reply.attr.from then reply.attr.from = origin.username.."@"..origin.host; end -- COMPAT To satisfy Psi when querying own account
if um_is_admin(stanza.attr.to or origin.full_jid, module.host) then
reply:tag('identity', {category='account', type='admin'}):up();
+ elseif prosody.hosts[module.host].users.name == "anonymous" then
+ reply:tag('identity', {category='account', type='anonymous'}):up();
else
reply:tag('identity', {category='account', type='registered'}):up();
end