aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
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