Software /
code /
prosody
Changeset
7018:5c3d4254d415
mod_register: Add comment explaining the workaround for replying when the account is being deleted
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 21 Dec 2015 14:48:33 +0100 |
parents | 7017:ff734a602886 |
children | 7019:abcd5ec3ee41 |
files | plugins/mod_register.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_register.lua Mon Dec 21 14:41:38 2015 +0100 +++ b/plugins/mod_register.lua Mon Dec 21 14:48:33 2015 +0100 @@ -98,6 +98,7 @@ if query.tags[1] and query.tags[1].name == "remove" then local username, host = session.username, session.host; + -- This one weird trick sends a reply to this stanza before the user is deleted local old_session_close = session.close; session.close = function(session, ...) session.send(st.reply(stanza));