# HG changeset patch # User Kim Alvefur # Date 1593886218 -7200 # Node ID b7e15abde27f9898eed272e1d3d485aa6d8085df # Parent b4db17aeff0126587ba8a51a507dd1f2c78548de mod_disco: Advertise anonymous users Can these even be seen? diff -r b4db17aeff01 -r b7e15abde27f plugins/mod_disco.lua --- a/plugins/mod_disco.lua Sat Jul 04 20:09:18 2020 +0200 +++ b/plugins/mod_disco.lua Sat Jul 04 20:10:18 2020 +0200 @@ -184,6 +184,8 @@ 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