--- 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