From 6ecf2ab1de3f7c3ad5a96e5e68c7dfb30c6eb331 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 21 Dec 2015 14:48:33 +0100 Subject: mod_register: Add comment explaining the workaround for replying when the account is being deleted --- plugins/mod_register.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') 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)); -- cgit v1.2.3