diff options
author | Kim Alvefur <zash@zash.se> | 2020-07-04 20:10:18 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-07-04 20:10:18 +0200 |
commit | 657290679d6a8fba16bd6666561daa7cf74a2947 (patch) | |
tree | a51e3e1bcef74ed6533f6458d00f98a6042a45f3 | |
parent | 182816c1ae2392ec3a715fc4d6873996f0c73945 (diff) | |
download | prosody-657290679d6a8fba16bd6666561daa7cf74a2947.tar.gz prosody-657290679d6a8fba16bd6666561daa7cf74a2947.zip |
mod_disco: Advertise anonymous users
Can these even be seen?
-rw-r--r-- | plugins/mod_disco.lua | 2 |
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 |