Mercurial > prosody-hg
comparison 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 |
| parents | 3b2cc22e9b5b f0d847316723 |
| children | 8c524b7c9017 |
comparison
equal
deleted
inserted
replaced
| 8154:6300394bb713 | 8156:745e0a783055 |
|---|---|
| 173 end | 173 end |
| 174 return true; | 174 return true; |
| 175 end | 175 end |
| 176 local reply = st.reply(stanza):tag('query', {xmlns='http://jabber.org/protocol/disco#info'}); | 176 local reply = st.reply(stanza):tag('query', {xmlns='http://jabber.org/protocol/disco#info'}); |
| 177 if not reply.attr.from then reply.attr.from = origin.username.."@"..origin.host; end -- COMPAT To satisfy Psi when querying own account | 177 if not reply.attr.from then reply.attr.from = origin.username.."@"..origin.host; end -- COMPAT To satisfy Psi when querying own account |
| 178 reply:tag('identity', {category='account', type='registered'}):up(); | |
| 178 module:fire_event("account-disco-info", { origin = origin, reply = reply }); | 179 module:fire_event("account-disco-info", { origin = origin, reply = reply }); |
| 179 origin.send(reply); | 180 origin.send(reply); |
| 180 return true; | 181 return true; |
| 181 end | 182 end |
| 182 end); | 183 end); |
