plugins/mod_disco.lua
changeset 8159 745e0a783055
parent 8044 3b2cc22e9b5b
parent 8158 f0d847316723
child 8191 8c524b7c9017
--- a/plugins/mod_disco.lua	Sat May 27 16:42:50 2017 +0200
+++ b/plugins/mod_disco.lua	Sat May 27 17:19:15 2017 +0200
@@ -175,6 +175,7 @@
 		end
 		local reply = st.reply(stanza):tag('query', {xmlns='http://jabber.org/protocol/disco#info'});
 		if not reply.attr.from then reply.attr.from = origin.username.."@"..origin.host; end -- COMPAT To satisfy Psi when querying own account
+		reply:tag('identity', {category='account', type='registered'}):up();
 		module:fire_event("account-disco-info", { origin = origin, reply = reply });
 		origin.send(reply);
 		return true;