Diff

plugins/mod_disco.lua @ 8156:745e0a783055

Merge 0.9->0.10
author Kim Alvefur <zash@zash.se>
date Sat, 27 May 2017 17:19:15 +0200
parent 8041:3b2cc22e9b5b
parent 8155:f0d847316723
child 8188:8c524b7c9017
line wrap: on
line diff
--- 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;