# HG changeset patch # User Emmanuel Gil Peyrot # Date 1495896810 -3600 # Node ID f0d847316723ddd4c453c0478adca00221122479 # Parent 8e26672df704269911cc806a9571d53b5e9fcbcb mod_disco: Add an account/registered identity on subscribed accounts, fixes #826. diff -r 8e26672df704 -r f0d847316723 plugins/mod_disco.lua --- a/plugins/mod_disco.lua Sat May 27 14:23:43 2017 +0100 +++ b/plugins/mod_disco.lua Sat May 27 15:53:30 2017 +0100 @@ -138,6 +138,7 @@ if not stanza.attr.to or is_contact_subscribed(username, module.host, jid_bare(stanza.attr.from)) then 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, stanza = reply }); origin.send(reply); return true;