aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_register.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-12-21 14:48:33 +0100
committerKim Alvefur <zash@zash.se>2015-12-21 14:48:33 +0100
commit6ecf2ab1de3f7c3ad5a96e5e68c7dfb30c6eb331 (patch)
treedf999e50c0cc8773a9b2b136cae8b6b17e64068a /plugins/mod_register.lua
parent15db20642a2295502d3af0ea3bff404ba8a299c6 (diff)
downloadprosody-6ecf2ab1de3f7c3ad5a96e5e68c7dfb30c6eb331.tar.gz
prosody-6ecf2ab1de3f7c3ad5a96e5e68c7dfb30c6eb331.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.lua1
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));