diff options
author | Kim Alvefur <zash@zash.se> | 2015-12-21 14:48:33 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-12-21 14:48:33 +0100 |
commit | d8fd2b081bac8587364fc2e57fe2810e826211a2 (patch) | |
tree | df999e50c0cc8773a9b2b136cae8b6b17e64068a /plugins/mod_register.lua | |
parent | e1c1a5339bc28de54535c07b9a7737ec7ec13b64 (diff) | |
download | prosody-d8fd2b081bac8587364fc2e57fe2810e826211a2.tar.gz prosody-d8fd2b081bac8587364fc2e57fe2810e826211a2.zip |
mod_register: Add comment explaining the workaround for replying when the account is being deleted
Diffstat (limited to 'plugins/mod_register.lua')
-rw-r--r-- | plugins/mod_register.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua index a1b4e581..7e1cdc8f 100644 --- a/plugins/mod_register.lua +++ b/plugins/mod_register.lua @@ -98,6 +98,7 @@ local function handle_registration_stanza(event) 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)); |