Merge 0.9->0.10
authorKim Alvefur <zash@zash.se>
Sat, 27 May 2017 17:19:15 +0200
changeset 8159 745e0a783055
parent 8157 6300394bb713 (current diff)
parent 8158 f0d847316723 (diff)
child 8160 4947e84f2e5b
child 8162 3850993a9bda
Merge 0.9->0.10
plugins/mod_disco.lua
--- 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;